Results 1 to 2 of 2

Thread: shutting down a win16 application

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    34
    ok, I have a program that I need to shut down. The only problem is that it is a win16 application. I CANNOT shut the file down by force, or it will cause a fatal exception error and the computer has to be rebooted. When you shut down the program manually, you have to go to file-->exit and then it asks you if you are sure if you want to close it. If you click yes then it saves backup files and closes. Does anybody know of a way for me to simulate hitting file-->exit and then clicking yes through code? I need this all to be automatted is the only reason I ask.

    Thanks to anybody who can help with this!!!

  2. #2
    Addicted Member Rudy's Avatar
    Join Date
    Sep 2000
    Location
    BC, Canada
    Posts
    198
    add a new function:
    form1.close (something like that im sure u'll find it)
    then in there add the same code that you have in your "exit" thing that work and everytime the user will close the program the code will run the program and should close it before so everything will be fine
    *Rudy^
    Visual Studio 6 Ent. SP5
    Windows 2000 SP4
    Windows XP SP1a

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