By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,202 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

Checking Format VB2005

P: 5
I have a text box in vb2005 where text needs to be entered in a certain format eg. a time hh:mm or another with just four characters. I want the backcolor of the box to change color if the format is not correct. However, I am having difficulties checking the formats of each box. How can this be done? I am currently trying code in the 'TextChanged' event, but not getting anywhere.

Many Thanks,

Dave.
Jun 25 '08 #1
Share this Question
Share on Google+
1 Reply


lotus18
100+
P: 866
Instead of textbox, why don't you use maskedtextbox?

Rey Sean
Jun 26 '08 #2

Post your reply

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