Checking Format VB2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davebaty
    New Member
    • Apr 2007
    • 5

    Checking Format VB2005

    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.
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Instead of textbox, why don't you use maskedtextbox?

    Rey Sean

    Comment

    Working...