VentureFree
Well-known member
- Joined
- Jan 9, 2008
- Messages
- 54
- Programming Experience
- 5-10
I've got a form (aspx) with a survey. One question in particular requires a text answer with less than 50 chars. I've set
but it still seems to allow the entry of more than 50 chars (I would have thought that at 50 chars it would stop accepting characters, but apparently not). Since that doesn't work, I figured I'd highlight all text past 50 chars on the TextChanged event to make it obvious to the user that they need to change at least that much of their answer. How do I go about doing that? I've seen other places mention using
but that option doesn't seem to be available to me. Any idea why?
VB.NET:
TextBox1.MaxLength = 50
VB.NET:
TextBox1.Select(#, #)