开发者

FormName.Show won't work

开发者 https://www.devze.com 2022-12-11 21:56 出处:网络
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 开发者_JS百科second and then the program closes.

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 开发者_JS百科second and then the program closes. (VB.Net 2003)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消