GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Visual Basic: How do i make a program close itself? (https://gfy.com/showthread.php?t=414210)

brizzad 01-09-2005 03:41 PM

Visual Basic: How do i make a program close itself?
 
I havent messed with VB in a year or two, but yesterday i started playing around wiht it again..

what command makes the program close?

Unload All or Unload me? or do those just hide the forms but leave the program open?

colpanic 01-09-2005 03:44 PM

I know that in C# it is Application.Exit() , so it is probably something very similar.

T

Tony Montana 01-09-2005 03:45 PM

simply put


end

Tony Montana 01-09-2005 03:47 PM

i think exit works also

unload me is an old way of doing things and sometimes only closes the forms

Pete-KT 01-09-2005 03:49 PM

are you trying to get it to close on its own or when you click a button?

pete

brizzad 01-09-2005 03:50 PM

Quote:

Originally Posted by Tony Montana
simply put


end

thanks that worked

brizzad 01-09-2005 03:51 PM

Quote:

Originally Posted by Pete-KT
are you trying to get it to close on its own or when you click a button?

pete

i was using it in

If lstDir.ListCount = 0 Then
Timer1.Enabled = False
End
Else

and 'end' worked

dcortez 01-09-2005 03:52 PM

yup - 'end'

-Dino

emthree 01-09-2005 04:50 PM

Quote:

END
What else would it be?

I would also learn to use google, before you try coding. Just a tip.

emthree 01-09-2005 04:51 PM

PSCODE is also cool for opensource projects, if you want to learn off coded projects.


All times are GMT -7. The time now is 05:56 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123