Click here to Skip to main content
15,899,475 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAccept numbers only in textbox Pin
Luc Baetsle1-Nov-09 22:31
Luc Baetsle1-Nov-09 22:31 
AnswerRe: Accept numbers only in textbox Pin
dan!sh 1-Nov-09 22:37
professional dan!sh 1-Nov-09 22:37 
GeneralRe: Accept numbers only in textbox Pin
Luc Baetsle1-Nov-09 22:41
Luc Baetsle1-Nov-09 22:41 
GeneralRe: Accept numbers only in textbox Pin
Christian Graus1-Nov-09 22:50
protectorChristian Graus1-Nov-09 22:50 
GeneralRe: Accept numbers only in textbox Pin
dan!sh 1-Nov-09 22:53
professional dan!sh 1-Nov-09 22:53 
GeneralRe: Accept numbers only in textbox Pin
Luc Baetsle1-Nov-09 23:02
Luc Baetsle1-Nov-09 23:02 
GeneralRe: Accept numbers only in textbox Pin
Luc Baetsle2-Nov-09 9:28
Luc Baetsle2-Nov-09 9:28 
AnswerRe: Accept numbers only in textbox Pin
Christian Graus1-Nov-09 22:38
protectorChristian Graus1-Nov-09 22:38 
Luc Baetsle wrote:
But if a letter is entered, the error I created is given, but after the letter is visible in textbox also.


What error ?

You should also use char.IsControl to check if it's a backspace, etc. And if it's neither, set the Handled property of the eventargs to true. I believe you need to do this in the KeyPress event.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

GeneralRe: Accept numbers only in textbox Pin
dan!sh 1-Nov-09 22:41
professional dan!sh 1-Nov-09 22:41 
GeneralRe: Accept numbers only in textbox Pin
Christian Graus1-Nov-09 22:49
protectorChristian Graus1-Nov-09 22:49 
GeneralRe: Accept numbers only in textbox Pin
dan!sh 1-Nov-09 23:01
professional dan!sh 1-Nov-09 23:01 
GeneralRe: Accept numbers only in textbox Pin
Christian Graus1-Nov-09 23:03
protectorChristian Graus1-Nov-09 23:03 
GeneralRe: Accept numbers only in textbox Pin
Luc Baetsle1-Nov-09 23:05
Luc Baetsle1-Nov-09 23:05 
AnswerRe: Accept numbers only in textbox Pin
Member 37888845-Nov-09 1:00
Member 37888845-Nov-09 1:00 
QuestionCreate array of Images. Pin
Anubhava Dimri1-Nov-09 21:12
Anubhava Dimri1-Nov-09 21:12 
AnswerRe: Create array of Images. Pin
Christian Graus1-Nov-09 21:21
protectorChristian Graus1-Nov-09 21:21 
GeneralRe: Create array of Images. Pin
Anubhava Dimri1-Nov-09 22:02
Anubhava Dimri1-Nov-09 22:02 
GeneralRe: Create array of Images. Pin
Christian Graus1-Nov-09 22:07
protectorChristian Graus1-Nov-09 22:07 
GeneralRe: Create array of Images. Pin
Anubhava Dimri1-Nov-09 22:29
Anubhava Dimri1-Nov-09 22:29 
GeneralRe: Create array of Images. Pin
Christian Graus1-Nov-09 22:37
protectorChristian Graus1-Nov-09 22:37 
GeneralRe: Create array of Images. Pin
Anubhava Dimri1-Nov-09 23:06
Anubhava Dimri1-Nov-09 23:06 
QuestionRead from XML file in word template for Office addin Pin
nitin_ion1-Nov-09 20:20
nitin_ion1-Nov-09 20:20 
QuestionAt the time of Generated Preview ......... [modified] Pin
Anubhava Dimri1-Nov-09 19:27
Anubhava Dimri1-Nov-09 19:27 
AnswerRe: At the time of Generated Preview ......... Pin
Christian Graus1-Nov-09 20:03
protectorChristian Graus1-Nov-09 20:03 
GeneralRe: At the time of Generated Preview ......... Pin
Anubhava Dimri1-Nov-09 20:29
Anubhava Dimri1-Nov-09 20:29 

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.