i'm not exactly experienced with VB, but i thought i'd make a start at it...
basically what i have right now is a form and two buttons, a "yes" button and a "no" button. i want the no button to close the form, which i think is simple code.
the problem is, the yes button code is very tricky: i want it to run a command line program to hibernate the computer, which isn't exactly just like opening or closing a form. i have the command line i need, and it works fine in the run box.
what i need is some code that i can paste my code into, and when the button is clicked it will hibernate the computer. (and maybe some code to close the form please)
thanks in advance,
Prism128
PS: before you all tell me to just click start -> shutdown etc, i'm running object dock so there is no start menu, and it takes ages when u press the start button, and i occasionally accidentally click the hibernate shortcut instead of one i want, so it shuts down :(
Question
Fr3d
hi,
i'm not exactly experienced with VB, but i thought i'd make a start at it...
basically what i have right now is a form and two buttons, a "yes" button and a "no" button. i want the no button to close the form, which i think is simple code.
the problem is, the yes button code is very tricky: i want it to run a command line program to hibernate the computer, which isn't exactly just like opening or closing a form. i have the command line i need, and it works fine in the run box.
what i need is some code that i can paste my code into, and when the button is clicked it will hibernate the computer. (and maybe some code to close the form please)
thanks in advance,
Prism128
PS: before you all tell me to just click start -> shutdown etc, i'm running object dock so there is no start menu, and it takes ages when u press the start button, and i occasionally accidentally click the hibernate shortcut instead of one i want, so it shuts down :(
Link to comment
Share on other sites
10 answers to this question
Recommended Posts