Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
How can i replace character in textbox keypress event using vb6. Like when i press in keyboard a then automatically
displayed text box "L" not displayed a in textbox. Please answer me quickly.
Posted

1 solution

You can do as below, it is a just sample code, you can do more stuff on it.

VB
Private Sub Text1_KeyPress(KeyAscii As Integer)
    KeyAscii = KeyAscii + 11
End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900