Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restart application after closing program

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.

like image 980
TheMuyu Avatar asked Dec 31 '25 11:12

TheMuyu


1 Answers

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.

like image 135
Jalal Said Avatar answered Jan 02 '26 00:01

Jalal Said



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!