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
495
Remove ToolTip after Tooltip has been added
posted

I have written an Extension Method to be able to add tooltips to let's say any checkbox in my application if desired :

 <Extension()> _
    Public Sub SetToolTip(ByVal control As JdnCheckBoxByVal tooltipText As String, title As String)
        AddToolTip(control, tooltipText, title)
    End Sub
Private Sub AddToolTip(ByVal control As System.Windows.Forms.ControlByVal tooltipText As String, title As String)
        If control IsNot Nothing Then
 
            Using tooltipInfo As New UltraToolTipInfo()
 
                tooltipInfo.ToolTipText = tooltipText
                tooltipInfo.ToolTipTitle = title
 
                Dim tooltipManager As New Infragistics.Win.UltraWinToolTip.UltraToolTipManager
                tooltipManager.DisplayStyle = Infragistics.Win.ToolTipDisplayStyle.Office2007
                tooltipManager.InitialDelay = 200
                tooltipManager.AutoPopDelay = 0
                tooltipManager.Appearance.BorderColor = Color.FromArgb(255, 255, 211, 89)
                tooltipManager.SetUltraToolTip(control, tooltipInfo)
 
            End Using
 
        End If
 
    End Sub

This works fine to add tooltips to my desired checkboxes, BUT now I need the same to remove a tooltip from a checkbox, of which I don't know it has one on it. I was looking for something like
tooltipManager.RemoveUltraToolTip(control) but I cannot find such thing... 
How can I solve this.
Parents Reply Children