|
-
Jun 12th, 2006, 12:44 PM
#1
Thread Starter
New Member
[2005] Trust me...I looked...Issue with program shutdown
Im coding a simple program to assist in the job functions at my workplace. So far so good. No problems except, Its not shutting down unless its on the Startup Form. I've changed in the properties to be either "Shutdown on Startup form" and to "Shutdown on last form"
How do I get this to shutdown no matter WHEN they hit the X in the top right?
-
Jun 12th, 2006, 12:48 PM
#2
Frenzied Member
Re: [2005] Trust me...I looked...Issue with program shutdown
Looking at your previous post the reason is that the forms are not actually closing. You are just hiding the forms. So when you set the project property to Shutdown on Startup form, only when the first form is closed will it shut down. When you set it to last form, it is waiting for all those hidden forms to close. If you are just hiding the forms, then in each form's Closed event add this line of code, and it should work
-
Jun 12th, 2006, 06:37 PM
#3
Thread Starter
New Member
Re: [2005] Trust me...I looked...Issue with program shutdown
Sorry to sound so new...But I also cant find anything about closed events anywhere...How do I locate that? Im using VB Express btw.
Thanks!
-
Jun 12th, 2006, 06:38 PM
#4
Frenzied Member
Re: [2005] Trust me...I looked...Issue with program shutdown
 Originally Posted by mitchelk
Sorry to sound so new...But I also cant find anything about closed events anywhere...How do I locate that? Im using VB Express btw.
Thanks!
form_closing
and
form_closed
-
Jun 12th, 2006, 07:06 PM
#5
Frenzied Member
Re: [2005] Trust me...I looked...Issue with program shutdown
In the coding window there are to comboboxes at the top. The left one you select the control, in this case it will be formevents. In the right one it lists all the events for that control. Select either Closed or CLosing. Untitled is the left combobox, untitled1 is the right combobox.
-
Jun 12th, 2006, 07:25 PM
#6
Thread Starter
New Member
Re: [2005] Trust me...I looked...Issue with program shutdown
Heh, I feel stupid. I actually just changed me.hide to me.close
Works like a charm. Also, quick question, how to I get a linklabel to link out to a browser webpage?
-
Jun 12th, 2006, 07:33 PM
#7
Hyperactive Member
Re: [2005] Trust me...I looked...Issue with program shutdown
Well for the event handler for the click event of the link label just have it say
VB Code:
Process.start("http://www.google.com")
Or whatever URL you need.
"Imagination is more important than knowledge" - Albert Einstein, born on March 14th 1879.
Can't find it here on VBForums? Go to the CodeProject. MSDN is your friend . I have such a bad website, my friend decided it would be funny to change the template and he moderates the site for me: visit my site!
"Thinking of you, wherever you are
We pray for our sorrows to end, and hope that our hearts will blend.
Now I will step forward to realize this wish.
And who knows, starting a new journey may not be so hard…
Or maybe it has already begun.
There are many worlds, but they share the same sky
one sky, one destiny..."
-
Jun 13th, 2006, 12:15 PM
#8
Thread Starter
New Member
Re: [2005] Trust me...I looked...Issue with program shutdown
Thanks.
Everyone has been a huge help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|