private void notifyIcon_MouseDoubleClick(object sender, MouseEventArgs e) { if (this.Visible) { this.Hide(); } else { this.Show(); this.Activate(); } dropForm.Opacity = 0; dropForm.targetOpacity = 0; dropForm.Hide(); }
public frmMain() { InitializeComponent(); kbHook.KeyPressed += new EventHandler <KeyPressedEventArgs>(hook_KeyPressed); kbHook.RegisterHotKey(0, Keys.PrintScreen); kbHook.RegisterHotKey(ModifierKeysH.Alt, Keys.PrintScreen); kbHook.RegisterHotKey(ModifierKeysH.Control, Keys.PrintScreen); dropForm = new frmDropArea(Main.uploadOrganizer); dropForm.Show(); dropForm.Hide(); Main.LoadCredentials(); tbUser.Text = Main.username; tbPword.Text = Main.password; }
public frmMain() { InitializeComponent(); kbHook.KeyPressed += new EventHandler<KeyPressedEventArgs>(hook_KeyPressed); kbHook.RegisterHotKey(0, Keys.PrintScreen); kbHook.RegisterHotKey(ModifierKeysH.Alt, Keys.PrintScreen); kbHook.RegisterHotKey(ModifierKeysH.Control, Keys.PrintScreen); dropForm = new frmDropArea(Main.uploadOrganizer); dropForm.Show(); dropForm.Hide(); Main.LoadCredentials(); tbUser.Text = Main.username; tbPword.Text = Main.password; }