how to reset and restart a winform and variable values code example Example: how to close and reopen an app in c# Application.Restart();