Results 1 to 4 of 4

Thread: how to do with When someone execute the program, the program start doing the events?

  1. #1

    Thread Starter
    Lively Member Satangel's Avatar
    Join Date
    Aug 2000
    Location
    KL,Malaysia
    Posts
    85
    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?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    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

  3. #3

    Thread Starter
    Lively Member Satangel's Avatar
    Join Date
    Aug 2000
    Location
    KL,Malaysia
    Posts
    85

    Talking 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?

  4. #4
    Guest
    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
  •  



Click Here to Expand Forum to Full Width