textbox - SelectionStart - scrolling

Discussion in 'Questions (Windows Mobile)' started by m.zielinski, Jun 25, 2007.

  1. m.zielinski

    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?
     
  2. petrbury

    petrbury Member Licensed User

    Hi,
    do you use "textbox.ScrollToCaret" after "textbox.SelectionStart" ?
    If not, try it.
    Petr
     
  3. m.zielinski

    m.zielinski Member Licensed User

    Thanks - that was what i needed!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice