hi, i am using rtb. I want to print a specific character when user presses Alt+some key by using chrW() method. I want to detect in KeyPress() event of rtb when user presses Alt+Key. How can i do that? I know i can detect (Alt+x) like combinations in Key_Down event of rtb and then i have used KeyCode = (decimal value of character to be printed). but its not working
yuleball
0
Newbie Poster
Recommended Answers
Jump to Postuse sendkeys or API Function.
Jump to PostIt already works using the number pad (ie: alt + 251 or whatever), but to do it how you want, you must subclass the form (which is kind of ugly), can't you just on keyup or keydown do something like this:
richtext1.text = richtext1.text & chrw(keycode)
or …
All 5 Replies
Jx_Man
987
Nearly a Senior Poster
Featured Poster
Comatose
290
Taboo Programmer
Team Colleague
kain_mcbride
12
Light Poster
yuleball
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.