textbox - SelectionStart - scrolling

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

  1. m.zielinski

    m.zielinski Member Licensed User


    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

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

    m.zielinski Member Licensed User

    Thanks - that was what i needed!