help in richtextbox.

S

Smith

I'm using RichTextBoxt control as text editor. In that we are in need of
following things:

(1) Left Margin with light gray color.

(2) If mouse left button clicked at any line, then in it's margin area
display one triangular bitmap.

(3) If another time mouse left button clicked at different line, then
triangular mark has to display at new location in margin not at old
location.

Please suggest.

Thanks!
 
N

Nicholas Paldino [.NET/C# MVP]

Smith,

I would recommend creating a composite control. You would have your
rich text box on the right, and then have grey space on the left. At that
point, you would handle the click event in your control's code, and paint
the left hand side of the control appropriately (painting the triangle).

Hope this helps.
 

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