Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
App Shuts Down
Message
From
16/01/2005 00:55:52
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
00977545
Message ID:
00977546
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform