Visual Basic: How do i make a program close itself?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brizzad
    holla
    • Jul 2003
    • 11769

    #1

    Visual Basic: How do i make a program close itself?

    I havent messed with VB in a year or two, but yesterday i started playing around wiht it again..

    what command makes the program close?

    Unload All or Unload me? or do those just hide the forms but leave the program open?
  • colpanic
    Confirmed User
    • May 2004
    • 1007

    #2
    I know that in C# it is Application.Exit() , so it is probably something very similar.

    T
    I like ducks.

    Comment

    • Tony Montana
      Confirmed User
      • Jan 2005
      • 794

      #3
      simply put


      end
      I am a marketing Genius.

      Comment

      • Tony Montana
        Confirmed User
        • Jan 2005
        • 794

        #4
        i think exit works also

        unload me is an old way of doing things and sometimes only closes the forms
        I am a marketing Genius.

        Comment

        • Pete-KT
          Workin With The Devil
          • Oct 2004
          • 51532

          #5
          are you trying to get it to close on its own or when you click a button?

          pete

          Comment

          • brizzad
            holla
            • Jul 2003
            • 11769

            #6
            Originally posted by Tony Montana
            simply put


            end
            thanks that worked

            Comment

            • brizzad
              holla
              • Jul 2003
              • 11769

              #7
              Originally posted by Pete-KT
              are you trying to get it to close on its own or when you click a button?

              pete
              i was using it in

              If lstDir.ListCount = 0 Then
              Timer1.Enabled = False
              End
              Else

              and 'end' worked

              Comment

              • dcortez
                DINO CORTEZ™
                • Jun 2003
                • 2145

                #8
                yup - 'end'

                -Dino

                Comment

                • emthree
                  Dialer Kingpin
                  • Jun 2003
                  • 10816

                  #9
                  END
                  What else would it be?

                  I would also learn to use google, before you try coding. Just a tip.

                  Sell Patches & Pills

                  Comment

                  • emthree
                    Dialer Kingpin
                    • Jun 2003
                    • 10816

                    #10
                    PSCODE is also cool for opensource projects, if you want to learn off coded projects.

                    Sell Patches & Pills

                    Comment

                    Working...