Answered Move Cursor position in RichEdit Control

  • Sonntag, 19. August 2012 08:20
     
     
    Hi All!!
     
    I'm Working on RichEdit Control, so when i paste the below code, cursor has to go directly to that location and write some text in rich edit control. So please suggest, and provide some sample code.
     
    23H,10 CodeProject : Cursor has to go 23rd row and 10th column and need to write the text like shown.... In RichEdit Control.
     
    Thanks in advance to all coders..
     
    Regards
    Sam
     
    (Note: I have tried with GetSel,SetSel,GetCaretPos, SetCaretPos not solved my problem)

Alle Antworten

  • Sonntag, 19. August 2012 18:21
     
     Beantwortet

    The function SetSel should be able to move the caret to desired location, but you have to provide correct arguments. Other useful functions are LineIndex and ReplaceSel.

    Maybe you parse the input string incorrectly, or the existing lines are too short? Show some details about your attempts.