Syntax for Accessing Controls in VB.Net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Back
Top