Hello Everybody,

I want my text box only accepts numbers and colon like 00:00 .The length should be limited to 5.Plese help as I stucked up with this............Thank You. CintoJose

Use MaskedTextBox control:

MaskedTextBox1.Mask = "00:00"

HTH

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.