|
-
Nov 6th, 2000, 11:22 PM
#1
Thread Starter
Lively Member
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?
-
Nov 6th, 2000, 11:39 PM
#2
no offense...
I can't understand a damn word you just said.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 7th, 2000, 08:14 AM
#3
Thread Starter
Lively Member
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?
-
Nov 7th, 2000, 08:21 AM
#4
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,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|