Allow Tab in a RichTextBox?

  • Thread starter Michael A. Covington
  • Start date
M

Michael A. Covington

How do I allow the user to use the Tab key (to insert a Tab) in a
RichTextBox? The sticking point is how to get Tab to generate a KeyDown
event rather than simply moving the focus to the next control.
 
G

Guest

Hi,
set the AcceptsTab property to true, you will then not tab out of the text
area and a tab will be inserted into the text.

Mark.
 
M

Michael A. Covington

Mark R. Dawson said:
Hi,
set the AcceptsTab property to true, you will then not tab out of the
text
area and a tab will be inserted into the text.

Mark.

Outstanding! Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top