I have crafted a routine that allows me to have my tooltip reflect
which Item in my ListView I am hovering over, but I can't implement any
of the delay functions. Has anyone been able to address this? I'm
pretty sure I'm just missing some simple paradigm.
Code:
Elsewhere
{
ToolTip tip = new ToolTip();
}
private void DisabledUserList_MouseMove(object sender, MouseEventArgs
e)
{
Point p = Cursor.Position;
p = DisabledUserList.PointToClient(p);
int CurrentIndex = DisabledUserList.IndexFromPoint(p);
if (CurrentIndex != LastIndex && CurrentIndex > 0)
{
LastIndex = CurrentIndex;
//System.Threading.Thread.Sleep(1000);
tip.ReshowDelay = 5000; // DOES NOTHING
tip.InitialDelay = 2000; //DOES NOTHING
tip.IsBalloon = true;
DataRowView drv =
(DataRowView)(DisabledUserList.Items[CurrentIndex]);
tip.SetToolTip(DisabledUserList,
drv["Path"].ToString());
}
else
{
if (CurrentIndex < 0) tip.SetToolTip(DisabledUserList,
"");
}
}
Thanks for taking a look and helping!
Brian Hampson
System Administrator - North America
ALS Laboratory Group