shrosario Posted February 18, 2003 Posted February 18, 2003 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 Quote
*Gurus* divil Posted February 18, 2003 *Gurus* Posted February 18, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.