Simulating a key stroke

G

Guest

Hi,

I am using a rich-edit control, I want the control to adjust so any new text
added to the control will always be shown ( similar to the way VS.NET output
pane works ), in other words: any time a new text is added to the control I
want the control to manually roll down so the added text would always be
shown, achieving that manually require me to press CTRL + END each time I
want to see the last text added, I want to simulate the CTRL + END click, how
can I do that using C#? what is the C# equivalent to the Win32
Post/SendMessage? OR is there a simpler solution to achive this? what is the
best way of causing a rich-edit control to roll to it's last page ( CTRL +
END )?
 
L

Lord2702

You can always override the scroll messages HScroll, and VScroll, or take
ScrollBars property of RichTextBox control or if it is in MFC still it is
possible, to override the scroll messages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top