Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "ShowCaret" in [All]

user32

.

Windows allows only one caret per message queue. To add a caret to a control, handle the WM_SETFOCUS message, or the GotFocus event, or override OnGotFocus if you're writing a custom control, and call CreateCaret from the message or event handler. You should also handle WM_KILLFOCUS, LostFocus or OnLostFocus and call DestroyCaret. You will also need to call ShowCaret to make the caret visible, and SetCaretPos to set its position.

.

        ShowCaret(textBox1.Handle);

.

    ShowCaret(TextBox1.Handle)

.

ShowCaret

.

Private showCaret As Boolean

.

  showCaret = False

.

  If showCaret = False Then HideCaret(tb.Handle)

.
Summary
.

static extern bool ShowCaret(IntPtr hWnd);

.

Function ShowCaret(ByVal hWnd As IntPtr) As Boolean

.

ShowCaret(listBox1.Handle);

.
Documentation
[ShowCaret] on MSDN

 
Access PInvoke.net directly from VS: