Piotrek,
You have to set the tooltip for control, but the messages will change
dynamically based on users mouse move
The following code demonstrates showing tool tip for first column which
always has text overflown during mousemove of listview.
private void listView1_MouseMove(object sender,
System.Windows.Forms.MouseEventArgs e)
{
ListViewItem item = listView1.GetItemAt(e.X,e.Y);
if(item != null)
{
if(item.Text != "")
{
this.myToolTip.SetToolTip(listView1,item.Text);
}
else
{
this.myToolTip.RemoveAll();
}
}
else
{
this.myToolTip.RemoveAll();
}
}
--
Shak
(Houston)
"Piotrek Stachowicz" <dy******@poczta.onet.pl> wrote in message
news:cc**********@news.onet.pl...
"Shakir Hussain" <sh**@fakedomain.com> wrote in message
news:#o**************@TK2MSFTNGP09.phx.gbl...
[cut]
You can show the tooltip if the text overflows during mouse hover.
Hi,
Tooltip would be quite a good idea if it weren't for the fact that I
'd have to associate with ListViewItem, rather than control. Any suggestions
how to do this?
Piotrek