Archive for January 6th, 2009
c# setting caret position for a richedit control
by brian on Jan.06, 2009, under .NET, GUI, c#
Here’s the code to set the position of the caret in a richedit control
int position = 12; richedit1.Select( position, 0 ); richedit1.ScrollToCaret(); // if you want the position to be shown
It’s that simple.
