How do I set Tab Stops in VB.Net Rich Text Boxes?

I am programming in Visual Basic .NET and I wish to set tab stops in various text boxes.  The SendMessages and LB_SETTABSTOPS does not work for BV.NET like it does in VB6.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi Harold,

First, make sure that the TabStop property for each of the controls you want to have a tabstop is set to True.  Then set the TabIndex value for each control to the order you want the tabstops to be in (first control TabIndex = 1, second control TabIndex = 2, etc.).

I hope that helps.

Harold_LominacAuthor Commented:
Thanks for replying Rob.  Perhaps I used the wrong terminology.  When I am in a rich text box, for example, and I press the Tab key, the cursor moves to the nearest tab stop within the text box.  It is similar to Microsoft Word.  I wish to set the positions in the document so I can have fields line up.  IN VB6 I can use LB_SETTABSTOPS and SendMessage to do this, but this doesn’t work in VB.NET.
Harold_LominacAuthor Commented:
Well I think I found the answer myself.
The tabs are set for highlighted text only.
Use the SelectionTabs member as:
      Dim ListBoxTabs() As Integer = {100, 300}
      RTB.SelectionTabs = ListBoxTabs
This portion is executed when a button is pressed.
The tab stops are applied to the highlighted text.
That's fine... I didn't understand the original question.

Question answered by asker or dialog valuable.
Closed, 125 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.