Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
App Shuts Down
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
00977545
Message ID:
00977546
Vues:
29
This message has been marked as the solution to the initial question of the thread.
>I have a VB Windows app.
>
>When I start the app with frmMain, the form appears and stays up.
>
>If I create a module, and do:
>
>
>Dim oForm As New frmMain
>oForm.Show()
>
>
>The form breifly appears then the app ends.
>
>What am I missing?

In your startup module, try something like this:
Module Startup

    Sub Main()
        Dim loForm As New Form1
        loForm.ShowDialog()
    End Sub

End Module
assuming Form1 is your form file.

Let me know if that helps.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform