Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 136,236 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,263 people online right now. Registration is fast and FREE... Join Now!




If Form1 closed then Aplication closes.

 
Reply to this topicStart new topic

If Form1 closed then Aplication closes.

Murt2003
10 Oct, 2008 - 05:59 AM
Post #1

New D.I.C Head
*

Joined: 10 Oct, 2008
Posts: 2

So if i close the first form (Form1) and i have some other forms, then the whole application closes. But i would like it to continue after closing the first form.
I am sorry if there already is a topic about this situation, I did search but found nothing.

Thank you !
User is offlineProfile CardPM
+Quote Post

thava
RE: If Form1 Closed Then Aplication Closes.
10 Oct, 2008 - 06:54 AM
Post #2

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 442



Thanked: 18 times
Dream Kudos: 50
My Contributions
hey this problem is in vb.net post your question in vb.net
one small suggestion create a login form are splash form and and make it hide(not close the form)
now your project is never end
until you specify the

application.exit
User is offlineProfile CardPM
+Quote Post

Reverand Dave
RE: If Form1 Closed Then Aplication Closes.
10 Oct, 2008 - 08:34 AM
Post #3

D.I.C Regular
Group Icon

Joined: 27 Jul, 2008
Posts: 373



Thanked: 2 times
Dream Kudos: 50
My Contributions
Make sure that your project has a sub Main and set that as your startup function instead of form1. In your project properties set your startup object as sub main and in the sub main put load form1 in that subroutine.
User is offlineProfile CardPM
+Quote Post

DeCompile
RE: If Form1 Closed Then Aplication Closes.
12 Oct, 2008 - 02:32 PM
Post #4

D.I.C Head
**

Joined: 20 Jul, 2008
Posts: 180



Thanked: 6 times
My Contributions
There is an option under:

Project -> Project Properties..

Where:

Shutdown mode:
When startup form closes
Or what you're after...
When last form closes..
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: If Form1 Closed Then Aplication Closes.
12 Oct, 2008 - 04:32 PM
Post #5

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,522



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
Moved to VB.NET smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:34AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month