I need to use a Sub Main() to initiate which form my program needs to start according to the user's preferences. Do I declare the Sub main function in the General Declarations section or am I suppose to do it in a .Bas module?
Printable View
I need to use a Sub Main() to initiate which form my program needs to start according to the user's preferences. Do I declare the Sub main function in the General Declarations section or am I suppose to do it in a .Bas module?
In a bas module...make sure your startup form is set to Sub Main() in the Project Properties dialog as well.
Public Sub Main()
...
Your code
...
End Sub
Thank you chrisjk.