Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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