Vb6 to .net Compatibility

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

In visual Basic 6 we can reference controls on another
form using code such as this

anotherform.text1.text = "blah"

how Do I reference controls that are located on anather
form in .net ( It wont let me directly reference the
controls evenif I import the entire class class to the
other form )

Thanks a lot
Andy
 
By default, controls on a form is specified as Private. You can change it to
Public thus, you can access it the same way as you do in VB6.
 
Back
Top