Click here to Skip to main content
15,900,818 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create a shortcut key for a control in C#? Pin
Nick Parker5-Dec-04 6:52
protectorNick Parker5-Dec-04 6:52 
Generalfile.Position problem Pin
balkang4-Dec-04 23:04
balkang4-Dec-04 23:04 
GeneralRe: file.Position problem Pin
Robin Panther5-Dec-04 1:56
Robin Panther5-Dec-04 1:56 
Generalproperty grid validation Pin
Sundar Venugopal4-Dec-04 18:57
Sundar Venugopal4-Dec-04 18:57 
Generaltrapping keystrokes Pin
Anonymous4-Dec-04 18:18
Anonymous4-Dec-04 18:18 
GeneralRe: trapping keystrokes Pin
Kir Birger5-Dec-04 5:51
Kir Birger5-Dec-04 5:51 
GeneralRe: trapping keystrokes Pin
Anonymous5-Dec-04 8:03
Anonymous5-Dec-04 8:03 
GeneralRe: trapping keystrokes Pin
Kir Birger5-Dec-04 8:09
Kir Birger5-Dec-04 8:09 
i don't understand what you're saying. could you explain exactly what you're doing? if you have a regular single line text box, it will always beep for return strokes unless you use a keyboard hook that intercepts the enter keystroke but that's icky.

From what i understand you might HAVE to use keyboard hooks though. the additional problem is that you don't want the keyboard hook to trap EVERY enter keystroke (per se if you're in another app). to solve this you have to run the hook, when WndProc is called you have to check if your control has focus. if it doesnt you have to pass the message on to the next window handle in the chain to recieve the message. If your control has focus you do whatever you want it to do and don't pass on the message.
GeneralRe: trapping keystrokes Pin
Anonymous5-Dec-04 11:10
Anonymous5-Dec-04 11:10 
GeneralRe: trapping keystrokes Pin
Kir Birger5-Dec-04 11:42
Kir Birger5-Dec-04 11:42 
GeneralRe: trapping keystrokes Pin
Anonymous5-Dec-04 19:01
Anonymous5-Dec-04 19:01 
GeneralRe: trapping keystrokes Pin
Kir Birger6-Dec-04 7:01
Kir Birger6-Dec-04 7:01 
Questionhow can scan port in c# Pin
mehdidj4-Dec-04 17:08
mehdidj4-Dec-04 17:08 
AnswerRe: how can scan port in c# Pin
Alex Korchemniy4-Dec-04 18:16
Alex Korchemniy4-Dec-04 18:16 
AnswerRe: how can scan port in c# Pin
leppie5-Dec-04 17:27
leppie5-Dec-04 17:27 
Generalxp look in .net Pin
Anonymous4-Dec-04 17:04
Anonymous4-Dec-04 17:04 
GeneralRe: xp look in .net Pin
Alex Korchemniy4-Dec-04 18:18
Alex Korchemniy4-Dec-04 18:18 
GeneralRe: xp look in .net Pin
Anonymous4-Dec-04 18:53
Anonymous4-Dec-04 18:53 
GeneralRe: xp look in .net Pin
Stefan Troschuetz4-Dec-04 22:13
Stefan Troschuetz4-Dec-04 22:13 
GeneralRe: xp look in .net Pin
Nick Parker5-Dec-04 4:36
protectorNick Parker5-Dec-04 4:36 
GeneralRe: xp look in .net Pin
Stefan Troschuetz5-Dec-04 5:00
Stefan Troschuetz5-Dec-04 5:00 
Generalserialization problems Pin
Kir Birger4-Dec-04 14:21
Kir Birger4-Dec-04 14:21 
Generalneed help with listbox Pin
tom_dx4-Dec-04 13:46
tom_dx4-Dec-04 13:46 
GeneralRe: need help with listbox Pin
tom_dx4-Dec-04 14:03
tom_dx4-Dec-04 14:03 
GeneralShape moving across screen HELP! Pin
...---...4-Dec-04 11:47
...---...4-Dec-04 11:47 

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.