devxlogo

March 31, 2001

Ensure that a TextBox caret is visible

Setting a multiline TextBox’s SelStart property doesn’t ensure that the insertion point (the caret) is visible. You can achieve this by sending the control an appropriate message: Private Declare Function