Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: DateTime Save null Pin
Heath Stewart17-Jan-05 10:58
protectorHeath Stewart17-Jan-05 10:58 
GeneralRe: DateTime Save null Pin
webhay17-Jan-05 11:46
webhay17-Jan-05 11:46 
GeneralRe: DateTime Save null Pin
Christian Graus17-Jan-05 12:29
protectorChristian Graus17-Jan-05 12:29 
Generalgdi line cursor Pin
bwagz17-Jan-05 9:14
bwagz17-Jan-05 9:14 
GeneralRe: gdi line cursor Pin
Heath Stewart17-Jan-05 11:04
protectorHeath Stewart17-Jan-05 11:04 
GeneralSerial Port (RS-232) Programming Pin
mci8407817-Jan-05 8:52
mci8407817-Jan-05 8:52 
GeneralRe: Serial Port (RS-232) Programming Pin
Jeff Bramwell17-Jan-05 10:20
Jeff Bramwell17-Jan-05 10:20 
GeneralControls Questions on winform. Pin
stan2817-Jan-05 8:17
stan2817-Jan-05 8:17 
Hi guys.

Assume I have the following situation.
I have two forms. Form1 and Form2. Both form has the same namespace.

And in Form1, I have a Panel1 control and a button1 control.
So when I click on button1 control, I want to add Form2 to Panel1.

For example sake:-

Instantiate it from Form1.
Form2 frm2 = new Form2();
Panel1.Controls.Add(frm2);

Now, at run-time, when i click on Button1 to instantiate those codes, I get, the following error msg...

"Cannot add a top level control to a control". Anyways around this ?


Stanley
GeneralRe: Controls Questions on winform. Pin
Anonymous17-Jan-05 9:38
Anonymous17-Jan-05 9:38 
GeneralRe: Controls Questions on winform. Pin
Dennis C. Dietrich17-Jan-05 10:31
Dennis C. Dietrich17-Jan-05 10:31 
GeneralRe: Controls Questions on winform. Pin
stan2818-Jan-05 5:03
stan2818-Jan-05 5:03 
Generalactive directory Pin
sujithapril17-Jan-05 7:21
sujithapril17-Jan-05 7:21 
GeneralC# app using Crystal Reports Pin
braber17-Jan-05 6:19
braber17-Jan-05 6:19 
GeneralXML-Updating of record Pin
Adnan Siddiqi17-Jan-05 6:14
Adnan Siddiqi17-Jan-05 6:14 
GeneralC# class hierarchy Pin
Peter Andersson17-Jan-05 5:50
Peter Andersson17-Jan-05 5:50 
GeneralRe: C# class hierarchy Pin
Heath Stewart17-Jan-05 6:18
protectorHeath Stewart17-Jan-05 6:18 
GeneralRe: C# class hierarchy Pin
17-Jan-05 11:55
suss17-Jan-05 11:55 
Generalnetwork path in conjunction with file.exists Pin
RB@Emphasys17-Jan-05 5:38
RB@Emphasys17-Jan-05 5:38 
GeneralRe: network path in conjunction with file.exists Pin
Heath Stewart17-Jan-05 6:28
protectorHeath Stewart17-Jan-05 6:28 
Generalinternal interfaces Pin
emission17-Jan-05 2:27
emission17-Jan-05 2:27 
GeneralRe: internal interfaces Pin
leppie17-Jan-05 4:36
leppie17-Jan-05 4:36 
GeneralRe: internal interfaces Pin
emission17-Jan-05 6:15
emission17-Jan-05 6:15 
GeneralRe: internal interfaces Pin
Heath Stewart17-Jan-05 6:41
protectorHeath Stewart17-Jan-05 6:41 
GeneralRe: internal interfaces Pin
emission17-Jan-05 10:02
emission17-Jan-05 10:02 
GeneralRe: internal interfaces Pin
Heath Stewart17-Jan-05 10:52
protectorHeath Stewart17-Jan-05 10:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.