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

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
commented: works perfect :) +1
commented: speedy +1
commented: never know this +1

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

you're Welcome
Happy coding :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.