[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?
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
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!
Re: [2005] Trust me...I looked...Issue with program shutdown
Quote:
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
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.
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?
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.
Re: [2005] Trust me...I looked...Issue with program shutdown
Thanks.
Everyone has been a huge help!