How can I access a form from a module?
Hey people,
Can anyone please tell me how to access a form from a module. For example, I have a project with a form called frmMain which contains a label called lblName. I also added a module called modMain.
Now I would like to access the label lblName in the modMain to change its Text property with this code:
Code:
frmMain.lblName.Text = "Enter your name:"
This is the way I used to do with VB6. But now I have VB.NET it won't work! The frmMain object is Nothing.
Please help...