Friday, 22 April 2011

The Single Character User Control

The below example is of a user control which pops up a message of the single character's entered in a textbox. Every time a character is entered a message box is popped up and the user gets an idea of the character enetered.
Private Sub Text1_KeyPress(KeyAscii As Integer)
MsgBox "" & Chr(KeyAscii)
End Sub
The same action can be performed for a password box, similiar to a text box, enabling the user to view the input.

No comments:

Post a Comment