private void tc_options_Click(object sender, EventArgs e) { frm_option frm_opt = new frm_option(); if (!handler.openopt) { frm_opt.Show(); handler.openopt = true; } else { handler.SetForegroundWindowEx(frm_opt); } }
private void option_Click(object sender, EventArgs e) { frm_option frm_opt = new frm_option(); if (!handler.openopt) { frm_opt.Show(); handler.openopt = true; } else { //int hwnd = frm_opt.Handle.ToInt32(); //SetForegroundWindow(hwnd); handler.SetForegroundWindowEx(frm_opt); } }