设置后重启系统:
if (MessageBox.Show("设置保存成功,下次启动时生效,你是否重启软件?","系统提示",MessageBoxButtons.YesNo,MessageBoxIcon.Question) == DialogResult.Yes)
{
Application.Exit();
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
}