Questions tagged [keydown]

"keydown" is an event used in writing software that is triggered when a key on the keyboard is being pressed. It usually precedes the event "keyup".

1434 questions
0
votes
2 answers

Problems with KeyDown, doesn't work

Possible Duplicate: Best way to implement keyboard shortcuts in winforms? I have a probleme with KeyDown or KeyPress or KeyUp. I creat a new KeyDown for the form (private void Form1_KeyDown(object sender, KeyEventArgs e)) where I insert this…
AnDr3yy
  • 239
  • 2
  • 5
  • 16
0
votes
3 answers

how to fire an event when the TAB key is pressed?

I just want to "catch" when some user press the TAB key in a Textbox. I'm working in a simple CRUD asp.net application, c# as code behind. I try to do this as a test: private void KeyForm_KeyDown( object sender, KeyEventArgs e ) { …
BrOSs
  • 909
  • 4
  • 10
  • 27
0
votes
2 answers

Why does this code only work in one instance?

I've set my form's KeyPreview property to true. I've added this code: private void PlatypusScheduleForm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F9) { tabControlPlatypi.SelectedTab = tabPageDuckBill; } else if…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

Arrow Keys on calling object method in Tetris game C++ Visual 2008

Im trying to use arrow keys to move tetris block left & right and rotate, but its not working while the block falls down the gameGrid. Here is my code. //Here is my Game cycle in the timer handler private: System::Void timer1_Tick(System::Object^ …
Nolan Ratu
  • 31
  • 3
0
votes
3 answers

Getting Java Webdriver 'Down Arrow' action to work

So I have been trying to resolve this for several hours. I have no clue what I am doing wrong. This is a type ahead field I am looking in is . When I type in there a js dropdown is created. When…
StanM
  • 827
  • 4
  • 12
  • 33
0
votes
1 answer

How do I limit .the keydown JavaScript event?

This is the file http://www.frysa.us/Arctext/Size.html I tried to limit the font size using an if statement: