P
prlaba
I'm writing a mini text editor in an Access form that contains several
RichTextBox controls. I want to allow standard text formatting
shortcuts, like <Ctrl+B> (bold), <Ctrl+I> (Italic) and <Ctrl+U>
(Underline). I use a KeyPress event within each RichTextBox control to
capture keystrokes and act accordingly.
<Ctrl+B> and <Ctrl+U> work as expected, but I can't seem to capture a
<Ctrl+I> keypress. Because <Ctrl+I> = <Tab> and <Tab> is typically
used to move between fields on a form, I thought that by disabling tab
stops in all of the controls on the form (.TabStop = False) whenever a
RichTextBox control has focus would do the trick, but no matter what
I've tried so far, the <Ctrl+I> key goes undetected.
How can I catch a <Ctrl+I> keypress in a RichTextBox control?
Thanks,
RichTextBox controls. I want to allow standard text formatting
shortcuts, like <Ctrl+B> (bold), <Ctrl+I> (Italic) and <Ctrl+U>
(Underline). I use a KeyPress event within each RichTextBox control to
capture keystrokes and act accordingly.
<Ctrl+B> and <Ctrl+U> work as expected, but I can't seem to capture a
<Ctrl+I> keypress. Because <Ctrl+I> = <Tab> and <Tab> is typically
used to move between fields on a form, I thought that by disabling tab
stops in all of the controls on the form (.TabStop = False) whenever a
RichTextBox control has focus would do the trick, but no matter what
I've tried so far, the <Ctrl+I> key goes undetected.
How can I catch a <Ctrl+I> keypress in a RichTextBox control?
Thanks,