Click here to Skip to main content
15,905,558 members
Home / Discussions / C#
   

C#

 
QuestionGet rid of delegate declarations Pin
Genbox14-Jun-07 7:22
Genbox14-Jun-07 7:22 
AnswerRe: Get rid of delegate declarations Pin
Ed.Poore14-Jun-07 9:07
Ed.Poore14-Jun-07 9:07 
GeneralRe: Get rid of delegate declarations Pin
Genbox14-Jun-07 10:10
Genbox14-Jun-07 10:10 
AnswerRe: Get rid of delegate declarations Pin
Jimmanuel15-Jun-07 5:53
Jimmanuel15-Jun-07 5:53 
GeneralRe: Get rid of delegate declarations Pin
Genbox15-Jun-07 9:15
Genbox15-Jun-07 9:15 
QuestionHow to make a Textbox only take numbers? Pin
dipuks14-Jun-07 6:43
dipuks14-Jun-07 6:43 
AnswerRe: How to make a Textbox only take numbers? Pin
Sathesh Sakthivel14-Jun-07 6:52
Sathesh Sakthivel14-Jun-07 6:52 
AnswerRe: How to make a Textbox only take numbers? Pin
Dave Kreskowiak14-Jun-07 7:06
mveDave Kreskowiak14-Jun-07 7:06 
You asked this question 3 days ago and got your answer. Asking it again will only get you ignored.

There are a ton of examples on how to do this on the web. You can create your own TextBox class by inheriting from TextBox, handling the KeyDown event and checking to see if the key pressed is numeric or not. You'll also have to make exceptions for the Delete and Backspace keys, plus the minus sign and decimal if you want your box to accept negative numbers and/or floating point numbers, without regard to culture I might add. You'll have to code your key filter to check what the culture specific number formatting characters are if you want it to support input from any culture other than English.

If you want it written for you, Google for "c# numeric textbox[^]".


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: How to make a Textbox only take numbers? Pin
Hesham Yassin20-Jun-07 0:29
Hesham Yassin20-Jun-07 0:29 
QuestionDataGridView - Randomly re-arranging columns Pin
Tristan Rhodes14-Jun-07 5:43
Tristan Rhodes14-Jun-07 5:43 
AnswerRe: DataGridView - Randomly re-arranging columns Pin
Pualee14-Jun-07 6:21
Pualee14-Jun-07 6:21 
QuestionListing Active Directory Users ? [modified] Pin
ASysSolvers14-Jun-07 4:51
ASysSolvers14-Jun-07 4:51 
AnswerRe: Listing Active Directory Users ? Pin
Manas Bhardwaj14-Jun-07 5:44
professionalManas Bhardwaj14-Jun-07 5:44 
QuestionData Source Configuration Wizard in VS2005 not accepting views with parameters Pin
Christopher Stratmann14-Jun-07 4:26
Christopher Stratmann14-Jun-07 4:26 
QuestionParsing each file in directory Pin
Rick van Woudenberg14-Jun-07 3:51
Rick van Woudenberg14-Jun-07 3:51 
AnswerRe: Parsing each file in directory Pin
Giorgi Dalakishvili14-Jun-07 3:57
mentorGiorgi Dalakishvili14-Jun-07 3:57 
AnswerRe: Parsing each file in directory Pin
Jimmanuel14-Jun-07 3:58
Jimmanuel14-Jun-07 3:58 
AnswerRe: Parsing each file in directory Pin
Rick van Woudenberg14-Jun-07 8:36
Rick van Woudenberg14-Jun-07 8:36 
QuestionFarm Database Pin
sajid.salim.khan14-Jun-07 3:37
sajid.salim.khan14-Jun-07 3:37 
JokeRe: Farm Database Pin
Not Active14-Jun-07 4:00
mentorNot Active14-Jun-07 4:00 
GeneralRe: Farm Database Pin
originSH14-Jun-07 4:03
originSH14-Jun-07 4:03 
GeneralRe: Farm Database Pin
DavidNohejl14-Jun-07 4:50
DavidNohejl14-Jun-07 4:50 
JokeRe: Farm Database Pin
Guffa14-Jun-07 7:57
Guffa14-Jun-07 7:57 
GeneralRe: Farm Database Pin
Paul Conrad14-Jun-07 10:33
professionalPaul Conrad14-Jun-07 10:33 
GeneralRe: Farm Database Pin
Dave Kreskowiak14-Jun-07 7:14
mveDave Kreskowiak14-Jun-07 7:14 

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.