c#浮動文字框Tooltip控件的使用總結隨筆

在load函數中:

      private void FormsRegister_Load(object sender, EventArgs e)
        {
            MinimizeBox = false;
            MaximizeBox = false;
            ControlBox = false;
            FormBorderStyle = FormBorderStyle.None;


            ToolTip tooltip1 = new ToolTip();
            tooltip1.AutoPopDelay = 5000;
            tooltip1.InitialDelay = 100;
            tooltip1.ShowAlways = true;
            tooltip1.ReshowDelay = 100;
            tooltip1.SetToolTip(textBox_email,"Please input your e-mail ,which will be used when you forget passwords.");
            tooltip1.SetToolTip(textBox_ensureagain, "Please input your pass word again.");
            tooltip1.SetToolTip(textBox_password, "Please input your pass word.");
            tooltip1.SetToolTip(textBox_username, "Please be sure to remember your username which will not be changed!!");
        }

發佈了37 篇原創文章 · 獲贊 20 · 訪問量 13萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章