PC Review


Reply
Thread Tools Rate Thread

Allow Tab in a RichTextBox?

 
 
Michael A. Covington
Guest
Posts: n/a
 
      15th Jan 2007
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.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFyayBSLiBEYXdzb24=?=
Guest
Posts: n/a
 
      15th Jan 2007
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.
--
http://www.markdawson.org
http://themightycoder.spaces.live.com


"Michael A. Covington" wrote:

> 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.
>
>
>

 
Reply With Quote
 
Michael A. Covington
Guest
Posts: n/a
 
      15th Jan 2007

"Mark R. Dawson" <(E-Mail Removed)> wrote in message
news:6BC4B821-FE92-4851-9A56-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Setting RichTextBox.SeletcionStart Change RichTextBox.Text ?!?!? eBob.com Microsoft VB .NET 1 30th Jul 2007 05:51 AM
Re: Copy the contents from richtextbox to another richtextbox with diff. font, style,collor backcolor etc. Ludovic SOEUR Microsoft C# .NET 0 9th Feb 2005 09:08 AM
Re: Copy the contents from richtextbox to another richtextbox with diff. font, style,collor backcolor etc. Alan Microsoft C# .NET 0 23rd Dec 2004 09:15 AM
Re: Copy the contents from richtextbox to another richtextbox with diff. font, style,collor backcolor etc. Liam McNamara Microsoft C# .NET 0 17th Nov 2004 10:33 AM
Re: Copy the contents from richtextbox to another richtextbox with diff. font, style,collor backcolor etc. Champika Nirosh Microsoft C# .NET 0 18th Oct 2004 05:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:10 AM.