how to get and set scrollbar positions of a rich textbox control.?
-
As the title says, I am wondering about how to get and set scrollbar positions of a rich textbox control. I want to make haxa editor using C#. so I used 3 richbox. first richbox displays the line number, second richbox displays Haxa data and the last richbox display ascii code. so all richbox scrolled at same position and at the same time. Does anyone know a method to get and set textbox scrollbar positions?
-
As the title says, I am wondering about how to get and set scrollbar positions of a rich textbox control. I want to make haxa editor using C#. so I used 3 richbox. first richbox displays the line number, second richbox displays Haxa data and the last richbox display ascii code. so all richbox scrolled at same position and at the same time. Does anyone know a method to get and set textbox scrollbar positions?
neoksd wrote: Does anyone know a method to get and set textbox scrollbar positions? Off the top of my head you can P/Invoke
GetScrollPos
andSetScrollPos
. I think you might be better to P/InvokeGetScrollInfo
andSetScrollInfo
instead though. - Nick Parker
My Blog