469,626 Members | 885 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Prevent Pasting invalid data in Textbox [ C# 2.0 ]

Hi,

Currently we have a text box which takes only Numbers. but using control keys and mouse we are able to paste string which has invalid data (i.e. !!@nmbdnm). So how can I restrict the pasting of invalid data on the text box while it should allow numeric strting to be pasted.
Aug 10 '07 #1
2 1952
Also The application is c# windows
Aug 10 '07 #2
piercy
77
you can probably set up a on paste event and the add your validation to it. im not sure how but can probably be done.
Aug 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by ccll20022000 | last post: by
3 posts views Thread by Michael Shell | last post: by
14 posts views Thread by Ed Jay | last post: by
11 posts views Thread by RobKinney1 | last post: by
5 posts views Thread by rn5a | last post: by
2 posts views Thread by AjitGoel | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.