From: Patrick F on
I have been using VB9 express and have not been pleased with the behavior of
the tooltips for toolstrip items. the tooltip sometimes gets 'stuck' onto
the screen over other controls, painted over the top of them until a repaint
event of that control can clear it off.
rather than find a way to not have this happen, I chose to make my own
'tooltip' of sorts using a separate toolstrip and a label that appears at
the bottom of the form on the mouseover event for all my toolstripitems. it
works snazzy and looks good except for the toolstripitems that are disabled.
I can't seem to access any mouse events for them. I have searched my brains
out trying to find a way around this, and the 'GetItemAt' looked promising,
but doesn't seem to work :(

all I want is the to get the tooltiptext of any toolstripitem under the
mouse pointer, even if it is a disabled item.

here is the code I have, using the 'GetItemAt' method:

Private Sub ts1_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles ts1.MouseMove
Dim item As ToolStripItem = CType(ts1.GetItemAt(e.Location),
ToolStripItem)
If item IsNot Nothing Then
lblToolTip.Text = item.ToolTipText
End If
End Sub

can someone please help me.
thank-you,
Patrick


From: C. Kevin Provance on
"Patrick F" <gomental(a)nospam-hotmail.com> wrote in message
news:B5FB9FAC-7316-48DE-87F3-8D4C851C0B0C(a)microsoft.com...
:I have been using VB9 express

You're in the wrong group pal. This group, for all the life it has left, is
for VB6 and lower.

I'm sure one of the .Nxt evangelists will be along to guide you to the right
place.

From: Cor Ligthert[MVP] on
Problem already solved by Patrick F himself no needs to give further links.

"Patrick F" <gomental(a)nospam-hotmail.com> wrote in message
news:B5FB9FAC-7316-48DE-87F3-8D4C851C0B0C(a)microsoft.com...
> I have been using VB9 express and have not been pleased with the behavior
> of
> the tooltips for toolstrip items. the tooltip sometimes gets 'stuck' onto
> the screen over other controls, painted over the top of them until a
> repaint
> event of that control can clear it off.
> rather than find a way to not have this happen, I chose to make my own
> 'tooltip' of sorts using a separate toolstrip and a label that appears at
> the bottom of the form on the mouseover event for all my toolstripitems.
> it
> works snazzy and looks good except for the toolstripitems that are
> disabled.
> I can't seem to access any mouse events for them. I have searched my
> brains
> out trying to find a way around this, and the 'GetItemAt' looked
> promising,
> but doesn't seem to work :(
>
> all I want is the to get the tooltiptext of any toolstripitem under the
> mouse pointer, even if it is a disabled item.
>
> here is the code I have, using the 'GetItemAt' method:
>
> Private Sub ts1_MouseMove(ByVal sender As Object, ByVal e As
> System.Windows.Forms.MouseEventArgs) Handles ts1.MouseMove
> Dim item As ToolStripItem = CType(ts1.GetItemAt(e.Location),
> ToolStripItem)
> If item IsNot Nothing Then
> lblToolTip.Text = item.ToolTipText
> End If
> End Sub
>
> can someone please help me.
> thank-you,
> Patrick
>
>
>