Exemple #1
0
        private void btnDl_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(this.txtId.Text))
            {
                ToolTipEx.ShowToolTip("请您输入竞买号后再登录", this.txtId);
                return;
            }
            if (string.IsNullOrEmpty(this.txtPwd.Text))
            {
                ToolTipEx.ShowToolTip("请您输入密码后再登录", this.txtPwd);
                return;
            }
            if (loginFlag)
            {
                this.InvalidateWhenLoginError();
            }
            else
            {
                this.InvalidateWhenLoginSuccess();
            }

            loginFlag = !loginFlag;
            this.Hide();
            new MainForm1().Show();
        }
Exemple #2
0
 private void txtPwd_SkinTxt_TextChanged(object sender, EventArgs e)
 {
     if (txtPwd.Text != string.Empty)
     {
         ToolTipEx.CloseToolTip();
     }
 }
Exemple #3
0
 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);
 }
Exemple #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            Console.WriteLine("button1_Click");

            ToolTipEx.ShowToolTip("请输入用户名再登陆请输入用户名再登陆123", this.textBox2);
        }