| Author: venkatesan 25 Jul 2008 | Member Level: Diamond | Rating: Points: 1 |
instead of doing like this
set maximum length of textbox = 4
Regards, M.Venkatesan.
Please remember to Rate “Excellent or Good or Poor”
|
| Author: venkatesan 25 Jul 2008 | Member Level: Diamond | Rating: Points: 1 |
or else even in ur code
using String Manipulation
ie: substring get the 4 characters only
Regards, M.Venkatesan.
Please remember to Rate “Excellent or Good or Poor”
|
| Author: venkatesan 25 Jul 2008 | Member Level: Diamond | Rating: Points: 1 |
Dim a As String = "ABCDEF"
Debug.WriteLine(a.Substring(0, 5))
'Returns ABCDE
Regards, M.Venkatesan.
Please remember to Rate “Excellent or Good or Poor”
|
| Author: Kulashekar.Konanki 25 Jul 2008 | Member Level: Silver | Rating: Points: 4 |
Hi,
use RANGE VALIDATOR control. It will be useful to you. Set its Minimum Value Property to '4'. Accepts minimum 4 values otherwise returns false or error message
Set its Maximum Value Property to 'number'. 'number' is the number of characters you want to see or accept in the textbox.
|
| Author: Lakshmankumar M 25 Jul 2008 | Member Level: Gold | Rating: Points: 4 |
Hi,
use RANGE VALIDATOR control. It will be useful to you. Set its Minimum Value Property to '4'. Accepts minimum 4 values otherwise returns false or error message
Set its Maximum Value Property to 'number'. 'number' is the number of characters you want to see or accept in the textbox. instead of doing like this
set maximum length of textbox = 4
|