KB Article A555
Visible to All Users

How to programmatically display a tooltip for a control via the ToolTipController component

Description:
I use the ToolTipController.ShowHint method to display a tooltip near an edit box. However, it only works the first time. What should I do to display the tooltip again for the same edit box?

Answer:
By design, a tooltip for a control is displayed just once. When showing a tooltip programmatically, you can work around this situation by calling the HideHint method before ShowHint. Here is the code:

C#
toolTipController1.HideHint(); toolTipController1.ShowHint("A tooltip", textBox1, DevExpress.Utils.ToolTipLocation.RightCenter);

See Also:
How to customize the ToolTip for a TreeList cell
Showing a hint for a grid cell even if its content is completely visible
How to get multi-line tooltips with a specific width
How to display a hint for an active editor within the XtraGrid
How to display hints only for particular cells

Comments (2)

    Hi, this is not working for me.
    The tooltip is displayed in a wrong location.

    The control which I would like to bound the tooltip is inside a group control of a mdichild form.
    The MDI main form has menu, toolbar, etc… on top and an accordion on the left.
    DX 20.1.6
    thanks

    Visual Basic
    Dim Args As New DevExpress.Utils.ToolTipControllerShowEventArgs() Args.IconType = DevExpress.Utils.ToolTipIconType.Information Args.SelectedControl = ddbFunzioni Args.Title = "Sono presenti allegati" Me.ToolTipController1.ShowHint(Args, ddbFunzioni)
    DevExpress Support Team 4 years ago

      Hello Paolo,

      I've created a separate ticket on your behalf (T950638: The tooltip is displayed in a wrong location). It has been placed in our processing queue and will be answered shortly.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.