private void checkedListBox1_MouseMove(object sender, MouseEventArgs e)
{
int index = this.checkedListBox1.IndexFromPoint(e.X, e.Y);
if (index != -1)
{ string text = this.checkedListBox1.Items[index].ToString();
this.toolTip1.SetToolTip(this.checkedListBox1, text);
}
}
哈哈 之前没有关注过IndexFromPoint 此类方法 真的很好用