Guest User

Untitled

a guest
Jul 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12.     public partial class Form1 : Form
  13.     {
  14.         public Form1()
  15.         {
  16.             InitializeComponent();
  17.         }
  18.  
  19.         private void textBox1_KeyDown(object sender, KeyEventArgs e)
  20.         {
  21.             if ((Control.ModifierKeys == (Keys.Control | Keys.Shift))&&(MouseButtons == MouseButtons.Left))
  22.             {
  23.                 textBox1.Text = "I'm pressing CTRL + SHIFT + Mouse LEft button";
  24.             }
  25.         }
  26.     }
  27. }
Add Comment
Please, Sign In to add comment