me2007

Hi!

I have question, how can I select text (with code) in (for example) rich text box, from LINE to LINE. Lets say I have 100 Lines in the loaded document and I want to select everything from Line 50 to line 80 (so I can that copy those lines or whatever). Thank you for your help!



Re: Windows Forms General Small problem

Lepaca

rtb is the richtextbox...

int32 st = rtb.GetFirstCharIndexFromLine(50)

int32 en = rtb.GetFirstCharIndexFromLine(80)

rtb.SelectionStart = st

rtb.SelectionLength = en - st





Re: Windows Forms General Small problem

me2007

That you soooo much, love you all!