开发者

Alt + Keys in richtextbox

I have a single lined richtextbox and i want to add chars. The chars wi开发者_如何学Pythonll have 2 states. So the text in rtb will have some characters with red color and some with green.

It's possible when the user presses Alt+some character the character to be added to rtb in red color?.

Thank you


Yah!it's possible. Add one button and change the text name to &+.add code to the button and hide it. So if you will press the Alt + then the character to be added to rtb will be in red color.

Adding "&" before the exact name of the button or menu will allow you to press the button or menu.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜