Making a Decision BEFORE Form Load

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a post about two below this that describes a logical decision. I would like to perform this when the app launches and before a form loads then load a form based on the returned criteria. What is the best way to do this?

Thank you,
John
 
* "=?Utf-8?B?amNyb3VzZQ==?= said:
I have a post about two below this that describes a logical
decision. I would like to perform this when the app launches and before
a form loads then load a form based on the returned criteria.

\\\
Public Module AppMain
Public Sub Main()
If ... Then
Application.Run(New MainForm())
Else
Application.Run(New InvalidLicenseForm())
End If
End Sub
End Module
///

In the project properties, select 'Sub Main' as startup object.
 
Back
Top