情景描述:
选择TextBox里的内容 Name:textTile
但是没有光标。
相关实现代码:
[DllImport("user32", EntryPoint = "HideCaret")]
private static extern bool HideCaret(IntPtr hWnd);
private void textTitle_DoubleClick(object sender, EventArgs e)
{
HideCaret(textTitle.Handle);
}