change tab (indent) property in RichTextBox?

C

chaim79

I am building a quick application for viewing html source files from web
pages. I created a simple inhereted user control from a rich text box that
supports tab indenting. However I find that pages quickly overwhelm it with
to many levels to display nicely.

If I recal the default tab stop is 8 spaces, is there any way to change that
or must I simply forgo tabs completely and indent using spaces?

Erik of Ekedahl
 
H

Herfried K. Wagner [MVP]

I am building a quick application for viewing html source files from web
pages. I created a simple inhereted user control from a rich text box that
supports tab indenting. However I find that pages quickly overwhelm it
with
to many levels to display nicely.

\\\
Private Sub Form1_Load( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs _
) Handles MyBase.Load
Me.RichTextBox1.Text = _
"Hallo" & ControlChars.Tab & _
"Welt" & ControlChars.Tab & _
"Bla"
End Sub

Private Sub Button1_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs _
) Handles Button1.Click
Me.RichTextBox1.SelectAll()
Me.RichTextBox1.SelectionTabs() = _
New Integer() {100, 200, 300}
End Sub
///
 

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