How to increase AutoPopDelay value for ListViewItems in WinForms?

后端 未结 3 1526
故里飘歌
故里飘歌 2021-01-23 01:22

You know that each item in a ListView has a ToolTipText property and that\'s all! There is no property like AutoPopDelay to set its displa

3条回答
  •  心在旅途
    2021-01-23 02:10

    MouseHover fires once per control - so is never updated as you move to different items.

    Use ListView.ItemMouseHover to accomplish what you need.

    void listView1_ItemMouseHover(object sender, ListViewItemMouseHoverEventArgs e)
    {
        this.toolTip1.SetToolTip(e.Item.ListView, e.Item.ToolTipText);
    }
    

提交回复
热议问题