Questions tagged [keypreview]
20 questions
0
votes
2 answers
Mark multiple checkboxes
I've 2 rows of checkboxes named.
like this:
upper (ck18,ck17,ck16,ck15,ck14,ck13,ck12,ck11,ck21,ck22,ck23,ck24,ck25,ck26,ck27,ck28)
lower (ck38,ck37,ck36,ck35,ck34,ck33,ck32,ck31,ck41,ck42,ck43,ck44,ck45,ck46,ck47,ck48)
Sorted in this order:
There…

arc95
- 97
- 1
- 8
0
votes
0 answers
When I try to put "Form.KeyPreview = True" it's giving me "Decleration Expected" Error message
I'm new with KeyPreview. I've read a bit about it but I still don't understand everything. In my code I put "Form.KeyPreview = True" But then it says "Declaration expected" under Form. I don't know what I need to declare though. I don't know if I…

A.J
- 315
- 4
- 17
0
votes
0 answers
What is a better way to respond to numeric keypresses?
I want to allow the checking of radio buttons via the keyboard, specifically via the numbers 1, 2, 3. I've got this code that works:
// "a WPF form hears what it wants to hear and disregards the rest" - paraphrased from "The Boxer" by Simon &…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
Disable the "Chime" sound with Ctrl-F in a Memo
I am using a TReplaceDialog and the following to catch key to launch the dialog, but Windows 8.1 keeps going "Ding" when I use it. How can I stop that chime? I have tried messing with the Form KeyPreview but still get that chime. Same for using the…
user2175495
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