Re-Starting an application after self killing (autodestruction)
-
Hi ! Does somebody has any idea about HOW i can kill the process by itself (like Environment.Exit(0)) and restart again ? In fact, my problem is what I can do to restart the application auto'magic'ally. Does it exist some mechanism with Windows to auto-restart an application ? What I do is I want to restart my application with new settings and/or new setup.:sigh:
Danny Gilbert, engineer Montreal, Canada
-
Hi ! Does somebody has any idea about HOW i can kill the process by itself (like Environment.Exit(0)) and restart again ? In fact, my problem is what I can do to restart the application auto'magic'ally. Does it exist some mechanism with Windows to auto-restart an application ? What I do is I want to restart my application with new settings and/or new setup.:sigh:
Danny Gilbert, engineer Montreal, Canada
Before calling Environment.Exit(0)) you could use Process.Start to create a new instance of your application. Process.Start Method[^]
topcoderjax - Remember, Google is your friend. Try this Custom Google Code Search
-
Hi ! Does somebody has any idea about HOW i can kill the process by itself (like Environment.Exit(0)) and restart again ? In fact, my problem is what I can do to restart the application auto'magic'ally. Does it exist some mechanism with Windows to auto-restart an application ? What I do is I want to restart my application with new settings and/or new setup.:sigh:
Danny Gilbert, engineer Montreal, Canada
Application.Restart() will do the trick