예제 #1
0
        public App()
        {
            InitializeComponent();
            bool ctrldown = false;

            _keyboardHook = new Y2KeyboardHook();
            _keyboardHook.Install();


            _keyboardHook.KeyDown += (sender, e) =>
            {
                if (e.KeyCode == Keys.LControlKey)///
                {
                    ctrldown = true;
                }

                if (e.KeyCode == Keys.T && ctrldown)//
                {
                    TakeNote takenote = new TakeNote();
                    takenote.Show();
                }
            };
            _keyboardHook.KeyUp += (sender, e) =>
            {
                if (e.KeyCode == Keys.LControlKey)
                {
                    ctrldown = false;
                }
            };
        }
예제 #2
0
        private void App_KeyDown1(object sender, KeyEventArgs e)
        {
            TakeNote takenote = new TakeNote();

            takenote.Show();
        }
예제 #3
0
        private void button2_MouseClick(object sender, MouseEventArgs e)
        {
            TakeNote Tk = new TakeNote();

            Tk.Show();
        }