3

I'm developed a program on C#. in my program, when user save personal setting the program can be following rules. 1- save settings. 2- after saving close all form and program. 3- and restart program.

I'm done 1. and 2. steps

How can i done 3. steps? thanks for patience.

Jalal Said
  • 15,906
  • 7
  • 45
  • 68
TheMuyu
  • 579
  • 2
  • 12
  • 31

1 Answers1

8

You can use Application.Restart() method to restart your application, if you don't like to use that method, here is a custom method that I used for restarting.

Community
  • 1
  • 1
Jalal Said
  • 15,906
  • 7
  • 45
  • 68
  • You are welcome, don't forget to mark this answer as [accepted answer](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235) if it answers your question right. – Jalal Said Aug 18 '11 at 10:07