Help accessing a control on a form from code in a module

shrosario

Newcomer
Joined
Oct 9, 2002
Messages
8
i need help to access a control on a form from code in a module!

ex: from a module in vb6

form1.Picture1

but how do you do it in vb.net
 
You need an instance of the form to be able to work with it. If you need to work with a form in a procedure in a module, you should pass the form to the procedure as one of the parameters.

I wouldn't use a module at all, it's best to group similar procedures together as shared functions of a class instead.
 
Back
Top