I have created a MainForm and included a Textbox control in the MainForm.
Then i have added another new form using "Add Windows Form". I have used this
syntax for accessing the textbox control in MainForm:
MainForm.Textbox1.text = "Welcome".
But it's throwing an exception. I have tried changing the Modifier Property
of Textbox to Public. But still i'm not able to get it. Can anyone provide
solution to my problem?
DotNetManiac - 23 Sep 2004 17:19 GMT
I have an example on my web site. You can download the source code there too.
http://www.dotnetmaniac.com/WinForms/0001.aspx
> I have created a MainForm and included a Textbox control in the MainForm.
> Then i have added another new form using "Add Windows Form". I have used this
[quoted text clipped - 3 lines]
> of Textbox to Public. But still i'm not able to get it. Can anyone provide
> solution to my problem?