keyeventargs Questions

5

Any ideas how to stop the system bell from sounding when CTRL-A is used to select text in a Winforms application? Here's the problem. Create a Winforms project. Place a text box on the form and ad...
Kimsey asked 22/10, 2008 at 13:26

7

Solved

I have System.Windows.Input.KeyEventArgs e variable. I want to get real char. For example, i press } button on keyboard. And normally it returns string like oem.. but i want to get } char. How to d...
Tryst asked 18/8, 2011 at 6:39

4

Solved

Is there a way to determine if a key is letter/number (A-Z,0-9) in the KeyEventArgs? Or do I have to make it myself? I found a way with e.KeyCode, is that accurate? if(((e.KeyCode >= Keys.A &am...
Joachima asked 13/3, 2011 at 23:35

3

Is there any way to convert WPF's KeyEventArgs.Key to Char? I tried to use KeyInterop: var x = (Char)KeyInterop.VirtualKeyFromKey(e.Key); For numbers and letters it works fine, but for other ch...
Lollygag asked 12/3, 2013 at 10:58

5

Solved

I need to get the event args as a char, but when I try casting the Key enum I get completely different letters and symbols than what was passed in. How do you properly convert the Key to a char? ...
Linton asked 12/5, 2009 at 21:49

2

Solved

The lead developer says that when he uses my app, his keyboard beeps when he moves between TextBoxes on the TableLayoutPanel via the directional arrow keys. However, I hear no such aural activity....
Maimonides asked 18/5, 2012 at 23:25

1

Solved

I have question about the KeyEventArgs's KeyCode and KeyData and KeyValue. KeyCode and Keydata are Keys type, but I don't know what the difference between them is. For KeyValue, I don't know what i...
Greengage asked 16/8, 2011 at 12:22

2

Solved

How can I forbid the Backspace-Key as easy as possible in a WPF-Application? The KeyDown-Event don't catch at the DEL and the Backspace-Key. Thank you!
Marquettamarquette asked 15/10, 2010 at 10:14
1

© 2022 - 2024 — McMap. All rights reserved.