Results 1 to 3 of 3

Thread: [2005] Exit Button

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    23

    [2005] Exit Button

    If I have an Exit button, what's the code to exit the form when i click it. I know Im useless.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    419

    Re: [2005] Exit Button

    vb Code:
    1. End

    put that inside your buttons click sub
    If a post has been usefull then Rate it!

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Exit Button

    Quote Originally Posted by VBlee
    vb Code:
    1. End

    put that inside your buttons click sub
    Never, NEVER use End. If you want to close the current form then call Me.Close. If you want to exit the application call Application.Exit.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width