I have a RTF control on one of my forms, my problem is when I press CTRL + E it aligns the text to the center (default with RTF's) how can I tell when CTRL + E was pressed and make the RTF ignor it?
Select Case KeyAscii
Case Is = 5 ' ignore CTRL + E
KeyAscii = 0
Case Else
KeyAscii = KeyAscii
End Select
End Sub
_________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
I'm baffled: I reproduced your code on my system (WinMe and VB6) where i created a standard form (Form1) and a standard rtf (RichTextBox1). The responses were as expected: even when trying any alphabetic key in combination with the CTRL key did produce the message box with the correct Ascii code (1 = a or A, 26 = z or Z) _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.