private void UpdateCaretSize() { if (_isCaretCreated) { User32PI.DestroyCaret(); User32PI.CreateCaret(_control.Handle, IntPtr.Zero, _size.Width, _size.Height); if (_isCaretShown) { User32PI.ShowCaret(_control.Handle); } } }
private void ShowCaret() { User32PI.ShowCaret(_control.Handle); _isCaretShown = true; }