回覆列表
  • 1 # 使用者7878186475180

    C#中如何設定tooltip的懸浮視窗停留的時間?

    你可以使用ToolTip 類 表示一個長方形的小彈出視窗,該視窗在使用者將指標懸停在一個控制元件上時顯示有關該控制元件用途的簡短說明。

    private void Form1_Load(object sender, System.EventArgs e)

    {

    // 建立the ToolTip

    ToolTip toolTip1 = new ToolTip();

    // 設定顯示樣式

    toolTip1.AutoPopDelay = 5000;

    toolTip1.InitialDelay = 1000;

    toolTip1.ReshowDelay = 500;

    // Force the ToolTip text to be displayed whether or not the form is active.

    toolTip1.ShowAlways = true;

    // 設定伴隨的物件.

    toolTip1.SetToolTip(this.button1, "My button1");

    }

  • 中秋節和大豐收的關聯?
  • 誰能推薦奧斯卡經典電影歌曲,在哪裡能找到?