Results 1 to 2 of 2

Thread: How do you?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    Cecilton, MD USA
    Posts
    278

    How do you?

    How do you close a program in VB.NET through any of the forms?

    is there like a Unload.Me or something like it?

  2. #2
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Smile

    Here's what I do to close my progam:

    VB Code:
    1. Dim Result As DialogResult
    2. Result = MessageBox.Show("Do you really wish to exit?", "Exit Reviewer", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
    3. If Result = DialogResult.Yes Then
    4.    Application.Exit()
    5. End If
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

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