Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Check existing ToolTipInfo before calling ShowToolTip
posted

I have an UltraToolTipManager control on a form.

In certain cases an UltraGrid control on the form has ToolTipInfo set.

The command I use to set the tool tip is:

Me.UltraToolTipManager.SetUltraToolTip(Me.UltraGrid1, New UltraToolTipInfo("My message here", ToolTipImage.Warning, Nothing, DefaultableBoolean.False))

This UltraGrid control also handles the MouseHover event

Private sub UltraGrid1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.UltraGrid1.MouseHover

Me.UltraToolTipManager1.ShowToolTip(Me.UltraGrid1)

End Sub

 

How can I check the control for existing ToolTipInfo before I call ShowToolTip?

Thanks for your help in advance

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    You can use the GetUltraToolTip method to get the ToolTipInfo on the grid. This will always return an object, but you could look at the ToolTipText to see if there is anything there.

Children