Making a Decision BEFORE Form Load

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jcrouse

    Making a Decision BEFORE Form Load

    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
  • Herfried K. Wagner [MVP]

    #2
    Re: Making a Decision BEFORE Form Load

    * "=?Utf-8?B?amNyb3VzZQ= =?=" <anonymous@disc ussions.microso ft.com> scripsit:[color=blue]
    > 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.[/color]

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

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

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    Working...