Hi, Can you tell me how can I make my application recognizes when the user presses a button on keyboard? *For example*: presses 'S', application prints "Hello.". I need this information for BorlandC++, but it would be useful even though you provide the same for VC++ :) *(I am not talking about console applications, I need these tips for GUI apps )* Thank you!

Member Avatar
Member Avatar
+0 forum 6

I've been reading about ApplicationCommands (specifically Paste) [URL="http://msdn.microsoft.com/en-us/library/system.windows.input.applicationcommands.paste.aspx"]here[/URL] and I have a question regarding the following paragraph: [QUOTE]A MenuItem is created and it's Command property is set to the Paste command. The CommandTarget is not explicitly set to the TextBox object. [B]When the CommandTarget is not set, the target for the command is the element which has keyboard focus.[/B] If the element which has keyboard focus does not support the Paste command or cannot currently execute the paste command (the clipboard is empty, for example) then the MenuItem would be grayed out.[/QUOTE] I understand in general what the sentence in …

Member Avatar
Member Avatar
+0 forum 5

The End.