0

Hi all, i want to make indent in rtf using track bar.
So when i scroll track bar my paragraph can shift follows the trackbar position.
Would u like to help me please...

Thank u very much

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Jx_Man
4

Try this following code :

Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll
    Editor.SelectionIndent = Editor.Width * (TrackBar1.Value / TrackBar1.Maximum)
End Sub
Votes + Comments
never know this
speedy
works perfect :)
1

Wow, Great code..
Thank you very much friend. you are a great coder.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.