[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern Int32 SendMessage(IntPtr hWnd, int msg, int wParam, [MarshalAs(UnmanagedType.LPWStr)] string lParam);
public static void SetHintText(Control control, string text)
{
SendMessage(control.Handle, 0x1501, 0, text);
}
下面连接是网络上找到的http://jileniao.net/post-112.html