Click here to Skip to main content
15,790,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get a MenuItem's name in runtime Pin
c0rvus7-Sep-07 7:57
c0rvus7-Sep-07 7:57 
QuestionRichTextBox e Pin
mihksoft7-Sep-07 2:49
mihksoft7-Sep-07 2:49 
AnswerRe: RichTextBox e Pin
Pete O'Hanlon7-Sep-07 2:52
subeditorPete O'Hanlon7-Sep-07 2:52 
GeneralRe: RichTextBox e Pin
mihksoft7-Sep-07 2:55
mihksoft7-Sep-07 2:55 
AnswerRe: RichTextBox e Pin
Giorgi Dalakishvili7-Sep-07 3:00
mentorGiorgi Dalakishvili7-Sep-07 3:00 
GeneralRe: RichTextBox e Pin
mihksoft7-Sep-07 3:14
mihksoft7-Sep-07 3:14 
GeneralRe: RichTextBox e Pin
Giorgi Dalakishvili7-Sep-07 3:26
mentorGiorgi Dalakishvili7-Sep-07 3:26 
AnswerRe: RichTextBox e Pin
Luc Pattyn7-Sep-07 3:21
sitebuilderLuc Pattyn7-Sep-07 3:21 
Hi,

KeyDown/KeyUp events offer a KeyEventArgs with amongst others these key information properties:
· Keys KeyCode: the keyboard code
· Keys KeyData: the key data (i.e. the key that was pressed, combined with
modifier flags that indicate which combination of CTRL, SHIFT, and ALT
keys was pressed at the same time.)
· int KeyValue: the integer representation of the KeyCode property

KeyPress events offer a KeyPressEventArgs with amongst others these key information properties:
· char KeyChar: the character (with correct casing)
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and KeyUp events.

The typical use would be to process KeyDown to handle special keys (such as Enter, Backspace,
and CTRL/X combinations), and to process KeyPress to consume regular keys (as in adding
characters to text)

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


QuestionHave a timer on a function Pin
andredani7-Sep-07 2:48
andredani7-Sep-07 2:48 
AnswerRe: Have a timer on a function Pin
Giorgi Dalakishvili7-Sep-07 2:52
mentorGiorgi Dalakishvili7-Sep-07 2:52 
Questionglobal.asax Pin
kalyan_24167-Sep-07 2:27
kalyan_24167-Sep-07 2:27 
AnswerRe: global.asax Pin
Giorgi Dalakishvili7-Sep-07 2:34
mentorGiorgi Dalakishvili7-Sep-07 2:34 
AnswerRe: global.asax Pin
Pete O'Hanlon7-Sep-07 2:39
subeditorPete O'Hanlon7-Sep-07 2:39 
QuestionProjectitem documents replacetext. Pin
topcatalpha7-Sep-07 2:26
topcatalpha7-Sep-07 2:26 
AnswerRe: Projectitem documents replacetext. Pin
topcatalpha7-Sep-07 3:38
topcatalpha7-Sep-07 3:38 
Questionmutlicasting problem Pin
snouto7-Sep-07 1:47
snouto7-Sep-07 1:47 
QuestionList View Column Manipulation Pin
M. J. Jaya Chitra7-Sep-07 1:02
M. J. Jaya Chitra7-Sep-07 1:02 
AnswerRe: List View Column Manipulation Pin
Giorgi Dalakishvili7-Sep-07 2:32
mentorGiorgi Dalakishvili7-Sep-07 2:32 
QuestionNeed to use Dos command Pin
M Riaz Bashir7-Sep-07 0:53
M Riaz Bashir7-Sep-07 0:53 
AnswerRe: Need to use Dos command Pin
Colin Angus Mackay7-Sep-07 1:04
Colin Angus Mackay7-Sep-07 1:04 
GeneralRe: Need to use Dos command Pin
M Riaz Bashir7-Sep-07 1:13
M Riaz Bashir7-Sep-07 1:13 
Questionto read from a notepad file line by line and insert each line into one table Pin
George Mathew7-Sep-07 0:07
George Mathew7-Sep-07 0:07 
AnswerRe: to read from a notepad file line by line and insert each line into one table Pin
DaveyM697-Sep-07 0:15
professionalDaveyM697-Sep-07 0:15 
GeneralRe: to read from a notepad file line by line and insert each line into one table Pin
Larantz7-Sep-07 2:01
Larantz7-Sep-07 2:01 
AnswerRe: to read from a notepad file line by line and insert each line into one table Pin
M Riaz Bashir7-Sep-07 0:59
M Riaz Bashir7-Sep-07 0:59 

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.