by Bruce Fast (3 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
The RichTextBox responds to the Insert key to toggle between Insert and Overwrite mode, but it doesn't display the correct cursor (caret), nor can you tell what mode it is in at any one time. This example shows what's necessary to make a block cursor, and report the RTB's insert mode.
API DeclarationsGetKeyState, CreateCaret, ShowCaret