How to set the insertion point in a Richt Edit Control.
Sorry I know it must be simple.
Printable View
How to set the insertion point in a Richt Edit Control.
Sorry I know it must be simple.
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
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...