Min
Min

Reputation: 1

FormName.Show won't work

When I try to show a form, I have to use ShowDialog instead of Show. (This is causing problems later in my code.) When I use show, the form pops up for a second and then the program closes. (VB.Net 2003)

Upvotes: 0

Views: 89

Answers (1)

Pierre-Alain Vigeant
Pierre-Alain Vigeant

Reputation: 23103

Use Application.Run() after showing your form so the application can continue working.

Or use Application.Run(yourForm) which will show your form and keep the application running until the yourForm closes.

Upvotes: 1

Related Questions