Re: Sub Main
From: David Schwartz (dave_at_hr-symphony.com)
Date: 04/30/04
- Next message: MadCrazyNewbie: "Re: Data Error (Datagrid combobox outside)"
- Previous message: Tim: "DataGridTextBoxColumn"
- In reply to: Herfried K. Wagner [MVP]: "Re: Sub Main"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Sub Main"
- Reply: Herfried K. Wagner [MVP]: "Re: Sub Main"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 11:53:04 -0400
If form f then shows another form g and f is closed, will the app remain
open?
Thanks.
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:c6tq2m$fpm6t$2@ID-208219.news.uni-berlin.de...
> * "David Schwartz" <dave@hr-symphony.com> scripsit:
> > In my Windows Forms app, I tried using a Sub Main as my startup object.
The
> > problem I found is that as soon as the End Sub is reached, the app
> > terminates (even if I showed a form during the sub). Has anyone else
seen
> > this? How can this be avoided, other than by using a form as the
startup
> > object?
>
> For Windows Forms applications:
>
> \\\
> Public Class AppMain
> Public Shared Sub Main()
> Dim f As New MainForm()
> Application.Run(f)
> End Sub
> End Class
> ///
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
- Next message: MadCrazyNewbie: "Re: Data Error (Datagrid combobox outside)"
- Previous message: Tim: "DataGridTextBoxColumn"
- In reply to: Herfried K. Wagner [MVP]: "Re: Sub Main"
- Next in thread: Herfried K. Wagner [MVP]: "Re: Sub Main"
- Reply: Herfried K. Wagner [MVP]: "Re: Sub Main"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|