How can I get the position of the caret?I want to made my application has a feature like VB's Intellisense.
I want to get it's coordinate,not the amount of charators !
Printable View
How can I get the position of the caret?I want to made my application has a feature like VB's Intellisense.
I want to get it's coordinate,not the amount of charators !
Look into the GetCursorPos and the TrackMouseEvent API functions...
Hope this helps.
Laterz
But I mean I want to get the position of the caret in a textbox,not the position of the mouse coursor.
Use the GetCaretPos API function.
VB Code:
Private Declare Function GetCaretPos Lib "user32" _ Alias "GetCaretPos" (lpPoint As POINTAPI) As Long Private Type POINTAPI x As Long y As Long End Type