private void txtPwd_SkinTxt_TextChanged(object sender, EventArgs e) { if (txtPwd.Text != string.Empty) { ToolTipEx.CloseToolTip(); } }
protected override void WndProc(ref Message m) { //处理鼠标点击事件,关闭tooltip if (m.Msg == CCWin.Win32.Const.WM.WM_LBUTTONDOWN || m.Msg == CCWin.Win32.Const.WM.WM_RBUTTONDOWN) { ToolTipEx.CloseToolTip(); } base.WndProc(ref m); }