JABOSL
Programmer
- Jan 25, 2006
- 35
In all my years of programming in VB4 I always had form1 as the main/startup form. That isn't cutting it in VB .net because other forms can't refer to things on form1 by saying form1.button1 etc. Ruffnekk just suggested in a recent post to me that I should use a Sub Main module as the startup module in the project. I haven't seen this done anywhere before.
Is creating a Sub Main now the "correct" way to start a VB.net program?
Where do I put the code for sub main?
It looks like Ruffnekk created a module--did you go to project/add module/module to do this?
Is creating a Sub Main now the "correct" way to start a VB.net program?
Where do I put the code for sub main?
It looks like Ruffnekk created a module--did you go to project/add module/module to do this?