Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

VB to Close itself down after finishing the program


  • Please log in to reply

#1
gmhowsi

gmhowsi

    New Member

  • Member
  • Pip
  • 2 posts
I need a little bit of help.

I am new to VB and need my program to close itself down after its finished. I just can't find anyway of doing it.

Any help would be appreciated!
  • 0

Advertisements


#2
KenshinX

KenshinX

    Member

  • Member
  • PipPip
  • 35 posts
Private Sub cmdClose_Click()

Unload Me

End

End Sub


  • 0

#3
ChrisWright

ChrisWright

    Member

  • Member
  • PipPip
  • 34 posts
As you have said that you are very new, I will just add that you only need to include the 'Unload Me' part of Kenshins given code at the end of any procedure that you wish it to close after.

Kenshins example (I believe?) is for upon clicking a button, named cmdClose (Presuming from usual naming conventions).

Chris
  • 0

#4
KenshinX

KenshinX

    Member

  • Member
  • PipPip
  • 35 posts
it's the same as in every other kind of thing, it can even be used on a label
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP