winform氣泡提示

這裏寫圖片描述

            ToolTip tip = new ToolTip();
            {
                var msg = "關鍵字不能爲空";
                tip.IsBalloon = true;
                tip.SetToolTip(textBox1, msg);
                tip.Show(msg, textBox1, 3 * 1000);
            }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章