コード例 #1
0
        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();
        }
コード例 #2
0
        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;
        }
コード例 #3
0
ファイル: frmMain.cs プロジェクト: foxCaves/LEGACY_foxScreen
        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;
        }