By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Adjust tab stops in Rich Text Box

P: n/a
Appreciate a lead to specifying where the tab stop is (only need one) in a
richtextbox. Use to be able to use an API with VB5.

Ed

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Ed Bitzer" <ed******@yahoo.com> schrieb:
Appreciate a lead to specifying where the tab stop is (only need one) in
a richtextbox. Use to be able to use an API with VB5.


\\\
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
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Herfried,

Do appreciate. Searching under Methods for the RichTextBox I now see said
the blind man. There is so much available I just miss. Biggest problem
leaning to use is to understand the help file which is awsome.

Ed

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eS*************@TK2MSFTNGP14.phx.gbl...
"Ed Bitzer" <ed******@yahoo.com> schrieb:
Appreciate a lead to specifying where the tab stop is (only need one) in
a richtextbox. Use to be able to use an API with VB5.


\\\
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
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.