Vb6 to .net Compatibility

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
 
N

Norm Yuan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top