The same way except VB.Net does not have a default object variable for each form. In VB6, every form has a hidden object variable defined as
Public formname as New formname
The "new" is delayed until the first reference to the variable.
In VB/Net, you could try defining an object variable for every form in a Public Module.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.