Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.WindowState     = FormWindowState.Normal;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Bounds          = Screen.PrimaryScreen.Bounds;
            this.ShowInTaskbar   = false;
            this.TopMost         = true;

            #region Code for Disable ALT+TAB , WINDOWS, CTRL+ESC
            ProcessModule objCurrentModule = Process.GetCurrentProcess().MainModule;
            objKeyboardProcess = new LowLevelKeyboardProc(captureKey);
            ptrHook            = SetWindowsHookEx(13, objKeyboardProcess, GetModuleHandle(objCurrentModule.ModuleName), 0);
            #endregion

            Taskbar.Hide();
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.Close();
     Taskbar.Show();
 }
 private void button1_Click(object sender, EventArgs e)
 {
     IsClosingByButtonClick = true;
     this.Close();
     Taskbar.Show();
 }