Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Replace
Message
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00393526
Message ID:
00393534
Views:
16
>I need to automatically replace quotes and apostrophes with backticks as the user types into a text box. How do I do this?

Like this:
Private Sub Text1_KeyPress(KeyAscii As Integer)
    If Chr(KeyAscii) = "'" Then KeyAscii = Asc("`")
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform