CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    6

    Rich Edit Control

    How to set the insertion point in a Richt Edit Control.
    Sorry I know it must be simple.



  2. #2

    Re: Rich Edit Control

    Hi,

    I think you probably need the SetSel member function of the RichEdit control. To set it at the 100 character, something like SetSel(100, 100) should do.

    Hope this helps,

    Simon


  3. #3
    Join Date
    May 1999
    Posts
    6

    Re: Rich Edit Control

    Thanks a lot, the problem I have with this method is.
    I am writing a document where I would like to write the first line and protect it. I have use the code in the Richeditctrl section here. When i Protect the first line, the user can append to the first line, and I dont want him to that. If I make the protected character the lenght of the first line+ 1 and place the insertion point with your suggestions, the user can´t write anything before using the arrows.
    Strange...


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

Featured