退出的时候aplication.exit()
QQ:860234001
编程交流群:236949758
public MainForm() { Login lg = new Login(); if (lg.ShowDialog() != DialogResult.OK) { Environment.Exit(Environment.ExitCode); return; } else { InitializeComponent(); } }
this.DialogResult = DialogResult.OK