Advertisement
Guest User

Untitled

a guest
May 4th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1.         private void Form1_KeyPress(object sender, KeyPressEventArgs e)
  2.         {
  3.             if (e.KeyCode == Keys.Up)
  4.             {
  5.                 point.X = button1.Location.X;
  6.                 point.Y = button1.Location.Y - 10;
  7.                 button1.Location = point;
  8.                 MessageBox.Show("GOGOGOGOGOGO");
  9.             }
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement