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 by Tom

Tom
Wed Apr 23 23:01:07 CDT 2008

On Apr 23, 6:10=A0pm, "John" <i...@nospam.infovis.co.uk> wrote:
> 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

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

--
Tom Shelton

Re: Application start-up events without start-up form by Bill

Bill
Wed Apr 23 23:20:37 CDT 2008

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.



"John" <info@nospam.infovis.co.uk> wrote in message
news:eVXen%23ZpIHA.1420@TK2MSFTNGP03.phx.gbl...
> 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 by John

John
Thu Apr 24 07:21:18 CDT 2008

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


"Bill McCarthy" <Bill@N0SPAM.com> wrote in message
news:448E61E9-85CA-43F0-8867-14B344AA5BBB@microsoft.com...
> 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.
>
>
>
> "John" <info@nospam.infovis.co.uk> wrote in message
> news:eVXen%23ZpIHA.1420@TK2MSFTNGP03.phx.gbl...
>> 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 by Bill

Bill
Fri Apr 25 01:29:27 CDT 2008

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.



"John" <info@nospam.infovis.co.uk> wrote in message
news:eOYexWgpIHA.3860@TK2MSFTNGP02.phx.gbl...
> 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
>
>
> "Bill McCarthy" <Bill@N0SPAM.com> wrote in message
> news:448E61E9-85CA-43F0-8867-14B344AA5BBB@microsoft.com...
>> 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.
>>
>>
>>
>> "John" <info@nospam.infovis.co.uk> wrote in message
>> news:eVXen%23ZpIHA.1420@TK2MSFTNGP03.phx.gbl...
>>> 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
>>>
>>>
>>
>
>