Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
GeneralRe: design time problems... Pin
LongRange.Shooter1-Nov-04 2:05
LongRange.Shooter1-Nov-04 2:05 
GeneralRe: design time problems... Pin
sianatia2-Nov-04 5:58
sianatia2-Nov-04 5:58 
GeneralRe: design time problems... Pin
LongRange.Shooter2-Nov-04 6:27
LongRange.Shooter2-Nov-04 6:27 
GeneralRe: design time problems... Pin
LongRange.Shooter2-Nov-04 6:31
LongRange.Shooter2-Nov-04 6:31 
Generalrunning windows application from Command prompt Pin
vchalla29-Oct-04 1:27
vchalla29-Oct-04 1:27 
GeneralRe: running windows application from Command prompt Pin
mrlou8829-Oct-04 4:04
mrlou8829-Oct-04 4:04 
GeneralRe: running windows application from Command prompt Pin
Anonymous30-Oct-04 2:55
Anonymous30-Oct-04 2:55 
GeneralMDI app and hosted controls Pin
ewan29-Oct-04 1:24
ewan29-Oct-04 1:24 
Hi
Could anyone please explain to me why the following results in two mdi forms but the textbox only appearing on the second one? Clearly there is some sort of mechanism preventing me from hosting the same control on two different forms but I can't find any documentation regarding this.

<br />
public Form1()<br />
		{<br />
			//<br />
			// Required for Windows Form Designer support<br />
			//<br />
			InitializeComponent();<br />
<br />
			this.IsMdiContainer = true;<br />
<br />
			TextBox box = new TextBox();<br />
<br />
			Form frmchild=new Form();<br />
			frmchild.MdiParent=this;<br />
			frmchild.Controls.Add(box);<br />
			frmchild.Show();<br />
<br />
			Form frmchild2=new Form();<br />
			frmchild2.MdiParent=this;<br />
			frmchild2.Controls.Add(box);<br />
			frmchild2.Show();<br />
<br />
		}<br />


Thanks in advance!

Ewan.
GeneralRe: MDI app and hosted controls Pin
LongRange.Shooter29-Oct-04 2:50
LongRange.Shooter29-Oct-04 2:50 
GeneralRe: MDI app and hosted controls Pin
ewan29-Oct-04 3:49
ewan29-Oct-04 3:49 
GeneralRe: MDI app and hosted controls Pin
LongRange.Shooter29-Oct-04 6:42
LongRange.Shooter29-Oct-04 6:42 
GeneralRe: MDI app and hosted controls Pin
Dave Kreskowiak29-Oct-04 5:05
mveDave Kreskowiak29-Oct-04 5:05 
GeneralGetting properties of a MS Word file Pin
Weckmann29-Oct-04 1:09
Weckmann29-Oct-04 1:09 
GeneralSize assignment to a control Pin
eDip29-Oct-04 0:07
eDip29-Oct-04 0:07 
GeneralRe: Size assignment to a control Pin
Stanciu Vlad29-Oct-04 4:49
Stanciu Vlad29-Oct-04 4:49 
GeneralRe: Size assignment to a control Pin
Dave Kreskowiak29-Oct-04 4:54
mveDave Kreskowiak29-Oct-04 4:54 
GeneralRe: Size assignment to a control Pin
Ketty Avashia29-Oct-04 9:45
Ketty Avashia29-Oct-04 9:45 
GeneralPrint RichTextBox Docs... Pin
Zamolxes28-Oct-04 23:56
Zamolxes28-Oct-04 23:56 
GeneralRe: Print RichTextBox Docs... Pin
sreejith ss nair29-Oct-04 4:44
sreejith ss nair29-Oct-04 4:44 
GeneralRe: Print RichTextBox Docs... Pin
Dave Kreskowiak29-Oct-04 4:49
mveDave Kreskowiak29-Oct-04 4:49 
Generalpixel matrix and neural network Pin
Phu Nguyen Si28-Oct-04 22:01
Phu Nguyen Si28-Oct-04 22:01 
GeneralInteresting error Pin
StephenMcAllister28-Oct-04 21:28
StephenMcAllister28-Oct-04 21:28 
GeneralRe: Interesting error Pin
Stanciu Vlad29-Oct-04 4:46
Stanciu Vlad29-Oct-04 4:46 
GeneralRe: Deployment Project Pin
Dave Kreskowiak29-Oct-04 4:40
mveDave Kreskowiak29-Oct-04 4:40 
QuestionHow to do this in C#? Pin
momer28-Oct-04 20:58
momer28-Oct-04 20:58 

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.