V
VMI
I have a Windows Form Form1 (not MDI) and when I double-click on the Form,
another Form2 will "pop up". How can I pass the text that I typed in Form2
to a textbox in Form1? I was thinking if it was possible that from Form2 I
can call a public method in Form1 that updates the Textbox. I wanted to use
something similar to the following code:
Form[] childForm = this.MdiParent.MdiChildren ;
Form f=null;
f=(Form)childForm[0];
frm_interactive frmInteractive=f as frm_interactive; //frm_interactive is
already open
frmInteractive.runAddress("my text"); //public method
Any help is appreciated. I'm using VS2005.
Thanks.
another Form2 will "pop up". How can I pass the text that I typed in Form2
to a textbox in Form1? I was thinking if it was possible that from Form2 I
can call a public method in Form1 that updates the Textbox. I wanted to use
something similar to the following code:
Form[] childForm = this.MdiParent.MdiChildren ;
Form f=null;
f=(Form)childForm[0];
frm_interactive frmInteractive=f as frm_interactive; //frm_interactive is
already open
frmInteractive.runAddress("my text"); //public method
Any help is appreciated. I'm using VS2005.
Thanks.