Results 1 to 2 of 2

Thread: RichText Control Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    12

    Question

    Hello Everybody

    I am currently using a RichTextControl to display a running log window.
    Regular Debug messages are printed on the log window. But, my cursor remains at first position even though text is appeared.

    I would like my cursor to move to the last position in the window. Can somebody kindly tell me how to do this ?

    Thanks a lot

    Sathya
    Sathya Krishnamurthy
    Research Scientist , CSCS
    Switzerland

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    I think you can do this:

    Code:
    RichTextBox1.SelStart= Len(RichTextBox1.Text) + 1

    Setting SelStart to a number greater than the length of the text changes the insertion point to the length of the text and sets the SelLength property to 0.

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width