Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2008

Tip: Looking for answers? Try searching our database.

Application start-up events without start-up form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 24 Apr 2008 01:10 GMT
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
Tom Shelton - 24 Apr 2008 05:01 GMT
> Hi
>
[quoted text clipped - 6 lines]
>
> Regards

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

--
Tom Shelton
Bill McCarthy - 24 Apr 2008 05:20 GMT
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.

> Hi
>
[quoted text clipped - 6 lines]
>
> Regards
John - 24 Apr 2008 13:21 GMT
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

> What is it you are trying to do ?
> If you want to change the startup from at runtime you can do that in the
[quoted text clipped - 10 lines]
>>
>> Regards
Bill McCarthy - 25 Apr 2008 07:29 GMT
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.

> Hi
>
[quoted text clipped - 25 lines]
>>>
>>> Regards

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.