VB6 RichTextBox SelStart Problem
Posted on 2011-05-12
In a VB6 RichTextbox, I need to obtain the current insert point (SelStart) with the MouseDown event. Although a standard textbox does this without a problem, the RichTextbox returns a 0 for the SelStart value on the first mouse click, then on each subsequent mouse click, it returns the previous click point. Strange, and not useful.
I have used a timer to obtain the actual SelStart point but this complicates things.
Is there a good way to obtain the actual SelStart/cursor position in a RichTextbox with the MouseDown event?