Startup Sub

sethindeed

Centurion
Joined
Dec 31, 1969
Messages
118
Location
Montreal Canada
I am trying to find where I can redefine the starting sub / routine when the program is launched.
In VB6, it was found under Project properties, but it is gone :(
Anybody knows where it can be found ?
 
Sure it's still there... right-click on the project in the Solution
Explorer, then click properties. There is a dropdown called
"Startup object" under Common Properties -> General.
 
Keep in mind that one of the changes in VB.NET is that the program immediately exits once Sub Main is over. In the past, if you loaded a form from Sub Main it wouldn't exit once it reached the end of Sub Main since that form was still loaded. Now, even if it is loaded, once it reaches the end the program is gone. This may not apply to you depending on what you are doing from Sub Main, but it is something to keep in mind.
 
Back
Top