Visual Basic

Discussion in 'Gaming' started by S1lence, May 2, 2005.

  1. S1lence

    S1lence Well-Known Member

    Posts:
    440
    Likes Received:
    0
    Joined:
    Feb 24, 2005
    I need code lines for the following please-

    To shut down your computer(Begin the sequence yadda yadda, couldn't get it searching through visual basic)
    And a code line for closing your Vis Basic Program, When you click exit it closes the program while it exits Debug.
     
  2. brickz

    brickz Well-Known Member

    Age:
    120
    Posts:
    1,091
    Likes Received:
    0
    Joined:
    Feb 27, 2005
    Location:
    Infected Designs Land :o)
    well for shut down i'd have to search through by bas files.. but the exit i think your talking about to close a program just do like


    in the sub where you want to exit the prog just put

    end

    or put

    unload form1
    end

    if this isnt what you mean idk then :T i make aol ccoms so thats all i know
     
  3. S1lence

    S1lence Well-Known Member

    Posts:
    440
    Likes Received:
    0
    Joined:
    Feb 24, 2005
    A friend showed me this, in the FRM Main, you oput Me.Close (it was test progam for small amount of points) So I saved it like that and gave it to my teacher. So everytime he tries to open my program it will close auto, lol.


    Anyway, I don't know bout the unlock form1 Not at school atm. But if I put end, that will just "End Debug Mode"
     

Share This Page