如何在鼠标悬停事件(winform C#)上显示listview项中的矩形
当我将鼠标悬停在如图所示的图标上时,如何显示描述。 由于我使用WinForms,我认为在如何在鼠标悬停事件(winform C#)上显示listview项中的矩形,c#,C#,当我将鼠标悬停在如图所示的图标上时,如何显示描述。 由于我使用WinForms,我认为在ListViewItem上的Mousehover事件中可能会出现这种情况,如图所示: // This example assumes that the Form_Load event handling method // is connected to the Load event of the form. private void Form1_Load(object sender, System.Event
ListViewItem
上的Mousehover
事件中可能会出现这种情况,如图所示:
// This example assumes that the Form_Load event handling method
// is connected to the Load event of the form.
private void Form1_Load(object sender, System.EventArgs e)
{
// Create the ToolTip and associate with the Form container.
ToolTip toolTip1 = new ToolTip();
// Set up the delays for the 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;
// Set up the ToolTip text for the Button and Checkbox.
toolTip1.SetToolTip(this.button1, "My button1");
toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
}
如果您需要更多帮助,请分享一些代码。我想询问背景或与我所附图片相同的矩形