c# - How to make a program restart itself -
been trying make program restart button click in program , codes "restart()" , "recreate()" dont exist. idea code work?
you can this:
system.windows.forms.application.restart(); // exist... application.current.shutdown(); // if using wpf, otherwise see below...
use application.exit()
or this.close()
second line in windows forms app.
Comments
Post a Comment