change tab (indent) property in RichTextBox?

  • Thread starter Thread starter chaim79
  • Start date Start date
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
 
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
///
 
Back
Top