Vb net textbox event validating

The three events listed in Table 4-5 are raised when the user presses a key on the keyboard.

The Key Down and Key Press events may seem somewhat redundant, but they fire at different points in the keyboard event stream and contain different information in the Event Args object.

(You will also get a Key Down and a Key Up event if a modifier key is pressed and released on its own.)The state of the modifier keys can also be retrieved from the read-only Control. The Keys enumeration, listed in Appendix A, is comprised of constants identifying all the possible keys on a keyboard.In many situations you need to enter only numeric values in the Textbox. Here you can see some useful techniques that accept only numbers in the textbox. They are represented by two bytes, which allows a maximum of 65,536 characters.The Unicode technology was introduced to allow easier representation of languages other than English, especially Asian languages such as Chinese and Japanese, which do not have limited alphabets.The Key Event Args event data associated with the Key Down and Key Up events provides low-level information about the keystroke, listed in Table 4-6.


Leave a Reply