-
i am wondering how can do like
if somebody exexute my program like
cute.exe(asume this is a program alreday being package)
then the computer automatically shutdown and no need to move mouse or push button or other events.
if the user is double click on my executable file, it does the job.
how can i do it?
any professional can tell me how to do it?
-
no offense...
I can't understand a damn word you just said.
-
Re: no offense...
if my english is poor , i feel sorry to u and make u confusing.
I mean i have make a program that is a form with a button call restart.And when i push the "Restart button".
it will restart windows.
But now i am thinking of how to i restart my windows without open the form and click "Restart button".
I want if i double cliking on the form or exe file jsut like everytime you open any program,the windows will restart automatically and not need to push any button.
how can i do it?
-
Are you doing a nasty "joke" program? Or are you meaning only the one program?
With just this program that restarts Windows, you can use a module that has following code:
Code:
Private Sub Main ()
'The restart code
End
End Sub
No forms, the program starts at the module's Main. If this is incorrect, someone else can correct.
Anyway, hope this helps,