Results 1 to 2 of 2

Thread: Quitting the program

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Quitting the program

    Most of my .Net work has been Console based up to now, but I'm venturing into form work.

    I was an old hand at VB6 and now I'm finding the little things a pain.

    What is the best way to end a program that has a few forms open?

    in Vb6 I might have used...

    VB Code:
    1. Sub QuitProg()
    2.  
    3. dim x as form
    4.  
    5. For Each x in Forms
    6. Unload x
    7. Set x = Nothing
    8. Next x
    9.  
    10. End
    11.  
    12. End Sub

    What about VB.Net?
    I don't live here any more.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    VB Code:
    1. Me.Dispose()
    2. Application.Exit()

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