예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }