protected override void WndProc(ref Message m) { //按快捷键 switch (m.Msg) { case WM_HOTKEY: switch (m.WParam.ToInt32()) { case 100: this.Form_Exit(); break; case 101: SendMsg.StopMainFormBtn(); break; } break; } base.WndProc(ref m); }
private void btn_stop_Click(object sender, EventArgs e) { SendMsg.StopMainFormBtn(); }