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

C#

 
QuestionHow to Allow only numbers for TextBox Pin
sacr8324-Jun-08 21:50
sacr8324-Jun-08 21:50 
AnswerRe: How to Allow only numbers for TextBox Pin
Giorgi Dalakishvili24-Jun-08 22:00
mentorGiorgi Dalakishvili24-Jun-08 22:00 
GeneralRe: How to Allow only numbers for TextBox Pin
sacr8324-Jun-08 22:09
sacr8324-Jun-08 22:09 
GeneralRe: How to Allow only numbers for TextBox Pin
leppie24-Jun-08 22:13
leppie24-Jun-08 22:13 
AnswerRe: How to Allow only numbers for TextBox Pin
Harvey Saayman24-Jun-08 22:03
Harvey Saayman24-Jun-08 22:03 
AnswerRe: How to Allow only numbers for TextBox Pin
wasimsharp24-Jun-08 22:12
wasimsharp24-Jun-08 22:12 
GeneralRe: How to Allow only numbers for TextBox Pin
leppie24-Jun-08 22:16
leppie24-Jun-08 22:16 
GeneralRe: How to Allow only numbers for TextBox Pin
wasimsharp24-Jun-08 22:44
wasimsharp24-Jun-08 22:44 
AnswerRe: How to Allow only numbers for TextBox Pin
User 665824-Jun-08 22:28
User 665824-Jun-08 22:28 
GeneralRe: How to Allow only numbers for TextBox Pin
leppie24-Jun-08 22:37
leppie24-Jun-08 22:37 
GeneralRe: How to Allow only numbers for TextBox Pin
User 665825-Jun-08 0:50
User 665825-Jun-08 0:50 
AnswerRe: How to Allow only numbers for TextBox Pin
Gareth H24-Jun-08 22:43
Gareth H24-Jun-08 22:43 
AnswerRe: How to Allow only numbers for TextBox Pin
Abhijit Jana24-Jun-08 23:01
professionalAbhijit Jana24-Jun-08 23:01 
Just use this

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)<br />
        {<br />
            if (!char.IsDigit(e.KeyChar))<br />
            {<br />
                e.Handled = true;<br />
                MessageBox.Show("Integer numbers only");<br />
            } <br />
        }


Best Regards
-----------------
Abhijit Jana
Check Out My Latest Article

Java.NET : Integration of Java and .NET[^]
"Success is Journey it's not a destination"

AnswerRe: How to Allow only numbers for TextBox Pin
Mbah Dhaim25-Jun-08 4:21
Mbah Dhaim25-Jun-08 4:21 
QuestionCustom validator error: PropertiesValid throws object reference Pin
livez24-Jun-08 21:44
livez24-Jun-08 21:44 
AnswerRe: Custom validator error: PropertiesValid throws object reference Pin
leppie24-Jun-08 22:02
leppie24-Jun-08 22:02 
QuestionHow i can create a wizard dll Pin
wasimsharp24-Jun-08 21:23
wasimsharp24-Jun-08 21:23 
AnswerRe: How i can create a wizard dll Pin
Christian Graus24-Jun-08 21:44
protectorChristian Graus24-Jun-08 21:44 
GeneralRe: How i can create a wizard dll Pin
wasimsharp24-Jun-08 22:49
wasimsharp24-Jun-08 22:49 
Questiondeleting a file from local disk after putting in DB Pin
laziale24-Jun-08 21:18
laziale24-Jun-08 21:18 
AnswerRe: deleting a file from local disk after putting in DB Pin
Giorgi Dalakishvili24-Jun-08 21:23
mentorGiorgi Dalakishvili24-Jun-08 21:23 
AnswerRe: deleting a file from local disk after putting in DB Pin
wasimsharp24-Jun-08 21:24
wasimsharp24-Jun-08 21:24 
GeneralRe: deleting a file from local disk after putting in DB Pin
laziale24-Jun-08 21:36
laziale24-Jun-08 21:36 
GeneralRe: deleting a file from local disk after putting in DB Pin
laziale24-Jun-08 21:56
laziale24-Jun-08 21:56 
GeneralRe: deleting a file from local disk after putting in DB Pin
wasimsharp24-Jun-08 22:30
wasimsharp24-Jun-08 22:30 

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.