textbox - SelectionStart - scrolling

m.zielinski

Member
Licensed User
Hi,

I have written an Notepad with basic4ppc - ui use a textbox for the Text - that works nice - also with a scrollbar in the textbox - but when i set the Cursor with textbox.SelectionStart - the Cursor jumps there but it scroll up to the first line - bad on a long file where you just pasted a thing into the last line and have to scroll down again the whole file...

Whats wrong?
 

petrbury

Member
Licensed User
Longtime User
Hi,
do you use "textbox.ScrollToCaret" after "textbox.SelectionStart" ?
If not, try it.
Petr
 
Top