Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I permit only small letters in a TextBox? Pin
Luc Pattyn17-Sep-11 5:37
sitebuilderLuc Pattyn17-Sep-11 5:37 
GeneralRe: How can I permit only small letters in a TextBox? Pin
rajeevkuth17-Sep-11 5:56
rajeevkuth17-Sep-11 5:56 
AnswerRe: How can I permit only small letters in a TextBox? Pin
Luc Pattyn17-Sep-11 6:31
sitebuilderLuc Pattyn17-Sep-11 6:31 
AnswerRe: How can I permit only small letters in a TextBox? Pin
BillWoodruff17-Sep-11 6:13
professionalBillWoodruff17-Sep-11 6:13 
GeneralRe: How can I permit only small letters in a TextBox? Pin
rajeevkuth17-Sep-11 6:59
rajeevkuth17-Sep-11 6:59 
AnswerRe: How can I permit only small letters in a TextBox? Pin
Luc Pattyn17-Sep-11 7:03
sitebuilderLuc Pattyn17-Sep-11 7:03 
GeneralRe: How can I permit only small letters in a TextBox? Pin
rajeevkuth17-Sep-11 8:08
rajeevkuth17-Sep-11 8:08 
GeneralRe: How can I permit only small letters in a TextBox? [modified] Pin
BillWoodruff17-Sep-11 7:31
professionalBillWoodruff17-Sep-11 7:31 
edit ... now that you've mentioned you are using WPF ... suggest you re-post in the WPF/SilverLight forum ... and repost with a much more carefully written statement of what you are trying to do ... WPF does indeed expose some different events for a TextBox: take a look at TextBox_PreviewTextInput. ... end edit ...

Assuming you are using WinForms: may I suggest you start by design-time setting an Event Handler for the KeyDown Event in a TextBox via the Properties/Events Manager, and then studying carefully the properties exposed by the 'KeyEventArgs e' parameter in that event handler.

Focus on "e.Shift."

And, then, think about what you have to do to preserve the information that you have received one ... or more ... key-presses with the Shift key down, and act upon it if the next key-press is lower-case.

Note the assumption, implicit here, that just handling whether the 'Shift' key is/was down will be enough to get you a solution to what you have described. Always good to question assumptions !

best, Bill
"Beauty is in the eye of the beholder, and it may be necessary from time to time to give a stupid or misinformed beholder a black eye." Miss Piggy"
modified on Sunday, September 18, 2011 2:53 AM

AnswerRe: How can I permit only small letters in a TextBox? Pin
Eddy Vluggen17-Sep-11 11:34
professionalEddy Vluggen17-Sep-11 11:34 
GeneralRe: How can I permit only small letters in a TextBox? Pin
BillWoodruff17-Sep-11 21:01
professionalBillWoodruff17-Sep-11 21:01 
GeneralRe: How can I permit only small letters in a TextBox? Pin
Eddy Vluggen18-Sep-11 1:40
professionalEddy Vluggen18-Sep-11 1:40 
AnswerRe: How can I permit only small letters in a TextBox? Pin
Pete O'Hanlon18-Sep-11 10:24
mvePete O'Hanlon18-Sep-11 10:24 
AnswerRe: How can I permit only small letters in a TextBox? Pin
Jithin c raj18-Sep-11 23:02
Jithin c raj18-Sep-11 23:02 
GeneralRe: How can I permit only small letters in a TextBox? Pin
Pete O'Hanlon18-Sep-11 23:42
mvePete O'Hanlon18-Sep-11 23:42 
GeneralRe: How can I permit only small letters in a TextBox? Pin
Jithin c raj18-Sep-11 23:49
Jithin c raj18-Sep-11 23:49 
GeneralRe: How can I permit only small letters in a TextBox? Pin
Pete O'Hanlon18-Sep-11 23:55
mvePete O'Hanlon18-Sep-11 23:55 
AnswerRe: How can I permit only small letters in a TextBox? Pin
pkwd19-Sep-11 0:50
pkwd19-Sep-11 0:50 
GeneralRe: How can I permit only small letters in a TextBox? Pin
Pete O'Hanlon19-Sep-11 0:55
mvePete O'Hanlon19-Sep-11 0:55 
GeneralRe: How can I permit only small letters in a TextBox? Pin
pkwd19-Sep-11 2:58
pkwd19-Sep-11 2:58 
GeneralRe: How can I permit only small letters in a TextBox? Pin
Pete O'Hanlon19-Sep-11 3:07
mvePete O'Hanlon19-Sep-11 3:07 
AnswerRe: How can I permit only small letters in a TextBox? Pin
Ravi Bhavnani19-Sep-11 1:29
professionalRavi Bhavnani19-Sep-11 1:29 
QuestionHelp add new section to this config please Pin
mwpeck16-Sep-11 6:13
mwpeck16-Sep-11 6:13 
AnswerRe: Help add new section to this config please Pin
Geoff Williams16-Sep-11 6:48
Geoff Williams16-Sep-11 6:48 
GeneralRe: Help add new section to this config please Pin
mwpeck16-Sep-11 7:00
mwpeck16-Sep-11 7:00 
GeneralRe: Help add new section to this config please Pin
PIEBALDconsult16-Sep-11 14:52
mvePIEBALDconsult16-Sep-11 14:52 

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.