Does anybody know how to allow the user to press the tab key within a RichTextBox and get a tab rather than moving to the next control?
I have tried capturing the keypress event but it is not generated by the tab key.
Thanks
Printable View
Does anybody know how to allow the user to press the tab key within a RichTextBox and get a tab rather than moving to the next control?
I have tried capturing the keypress event but it is not generated by the tab key.
Thanks
try setting the forms keypreview property to true and capture the tab key in the forms_keypress event.
NOTE: if the user pressed CTRL+Tab it would work ok too, but i doubt you want them to have to do that eh :)
Use KeyDown()
KeyCode for tab is 9