Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
QuestionC# - Working with file Pin
leanhsang26-Oct-06 17:10
leanhsang26-Oct-06 17:10 
AnswerRe: C# - Working with file Pin
engsrini26-Oct-06 19:01
engsrini26-Oct-06 19:01 
AnswerRe: C# - Working with file Pin
sam#26-Oct-06 19:01
sam#26-Oct-06 19:01 
AnswerRe: C# - Working with file Pin
ednrgc27-Oct-06 2:42
ednrgc27-Oct-06 2:42 
QuestionDragDrop Article Dilemma...Please help... Pin
new_phoenix26-Oct-06 15:59
new_phoenix26-Oct-06 15:59 
QuestionEliminating Write Protection Pin
hotnreddyfreddy26-Oct-06 13:19
hotnreddyfreddy26-Oct-06 13:19 
AnswerRe: Eliminating Write Protection Pin
ednrgc27-Oct-06 2:39
ednrgc27-Oct-06 2:39 
QuestionStop Button from taking focus during a keypress or keyup event. Pin
bradsnobar26-Oct-06 11:18
bradsnobar26-Oct-06 11:18 
I wrote a custom menu control that accepts keyboard movement.
I have a form with a button on it.
When I click the button I see my menu pop up below the button.

The problem is that the focus shifts between the button and the custom control whenever I press an arrow key.

How do I keep other controls from stealing focus away from my custom control.
I don't want to disable other controls.
I want to maintain focus in my custom control

I've tried to set the handled and the suppressKeyPress functionality in the event but the button still grabs focus for every other keypress.

Any ideas?

Thanks,
Brad
AnswerRe: Stop Button from taking focus during a keypress or keyup event. Pin
bradsnobar26-Oct-06 11:35
bradsnobar26-Oct-06 11:35 
Questionhow AdjustTokenPrivileges in C# ? Pin
vincent3126-Oct-06 10:57
vincent3126-Oct-06 10:57 
AnswerRe: how AdjustTokenPrivileges in C# ? Pin
vincent3127-Oct-06 0:38
vincent3127-Oct-06 0:38 
GeneralRe: how AdjustTokenPrivileges in C# ? Pin
vincent3127-Oct-06 0:39
vincent3127-Oct-06 0:39 
GeneralCrystal Report Pin
Saleh Mahmoud26-Oct-06 9:35
Saleh Mahmoud26-Oct-06 9:35 
GeneralRe: Crystal Report Pin
ednrgc26-Oct-06 9:42
ednrgc26-Oct-06 9:42 
GeneralRe: Crystal Report Pin
Saleh Mahmoud30-Nov-06 8:26
Saleh Mahmoud30-Nov-06 8:26 
QuestionCrystal Report Proble Pin
Saleh Mahmoud26-Oct-06 9:34
Saleh Mahmoud26-Oct-06 9:34 
QuestionRead barcode Pin
kajkow26-Oct-06 9:32
kajkow26-Oct-06 9:32 
AnswerRe: Read barcode Pin
stancrm26-Oct-06 23:01
stancrm26-Oct-06 23:01 
QuestionCrystal Report Problem1 Pin
Saleh Mahmoud26-Oct-06 9:32
Saleh Mahmoud26-Oct-06 9:32 
QuestionCrystal Report Problem Pin
Saleh Mahmoud26-Oct-06 9:31
Saleh Mahmoud26-Oct-06 9:31 
QuestionConverting Characters in Numbers.....Encryption Pin
drew.perkins26-Oct-06 9:08
drew.perkins26-Oct-06 9:08 
AnswerRe: Converting Characters in Numbers.....Encryption Pin
Guffa26-Oct-06 9:19
Guffa26-Oct-06 9:19 
GeneralRe: Converting Characters in Numbers.....Encryption Pin
led mike26-Oct-06 9:23
led mike26-Oct-06 9:23 
GeneralRe: Converting Characters in Numbers.....Encryption Pin
Guffa26-Oct-06 10:43
Guffa26-Oct-06 10:43 
GeneralRe: Converting Characters in Numbers.....Encryption Pin
drew.perkins26-Oct-06 13:09
drew.perkins26-Oct-06 13:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.