Donot allow any space in textbox [Resolved]

Posted by Kundan under VB.NET on 7/28/2013 | Points: 10 | Views : 7015 | Status : [Member] | Replies : 2
Suppose iam entering some integer values in textbox .It will not allow any space in the textbox.


Thanks in advance




Responses

Posted by: Ssj_Kumar on: 7/28/2013 [Member] Starter | Points: 25

Up
0
Down
try with
string.IsNullOrWhiteSpace(TextBox1.Text)
Do this is TextBox.TextChanged Event.


Regards,
Jayakumar Selvakani

Kundan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kundan on: 7/28/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Jitendra,

It is a windows application.

Hi Ssj,

It is showing error as

IsNullOrWhiteSpace is not a member of string




Kundan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response