all groups > dotnet windows forms > april 2008 >
You're in the

dotnet windows forms

group:

Application start-up events without start-up form



Re: Application start-up events without start-up form Tom Shelton
4/23/2008 9:01:07 PM
dotnet windows forms: [quoted text, click to view]

You can't... You have to use a form as your startup object when you
use the framework.

--
Application start-up events without start-up form John
4/24/2008 1:10:51 AM
Hi

My app needs to use the MyApplication_Startup and
MyApplication_StartupNextInstance events but do not need the start-up form.
How can I get rid of the start-up form as I can't select the Sub Main when
application framework is enabled.?

Thanks

Regards

Re: Application start-up events without start-up form John
4/24/2008 1:21:18 PM
Hi

I need the vb.net app to work in background (so to speak) as it will get an
event by an external app periodically by it (vb.net app) being called with a
parameter by the external app. I am using MyApplication_Startup and
MyApplication_StartupNextInstance events to pick up that command line
parameter but as I need to do this in background I do not need to show the
form.

Should I use an app type other than Winform to accomplish this?

Thanks

Regards


[quoted text, click to view]

Re: Application start-up events without start-up form Bill McCarthy
4/24/2008 2:20:37 PM
What is it you are trying to do ?
If you want to change the startup from at runtime you can do that in the
Startup event by setting Me.MainForm to the appropriate form.



[quoted text, click to view]
Re: Application start-up events without start-up form Bill McCarthy
4/25/2008 4:29:27 PM
Yeh, I'd say just use a Sub Main. Uncheck the "Enable Application Framework"
box, then select a Sub Main in the startup object drop down.



[quoted text, click to view]
AddThis Social Bookmark Button