Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Expand]Controls and Libraries
 [Collapse]Common Features
  [Expand]Data Binding Common Concepts
  [Expand]Data Source Wizard
  [Expand]Expressions
  [Expand]Behaviors
  [Expand]Application Appearance
  [Expand]Filtering UI Context
  [Expand]High DPI Support
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML Text Formatting
  [Expand]Menus
  [Collapse]Tooltip Management
    How to: Customize Tooltips for XtraGrid and CheckBox Using the ToolTipController
    How to: Customize Tooltips Using the Default ToolTipController
    How to: Add Tooltips for the Row Indicator in XtraGrid
    How to: Create SuperToolTips In Code
    ToolTipController Component
    ToolTip Types
    Setting ToolTips for DevExpress Controls
    Setting ToolTips for Third-Party Controls
    Creating SuperToolTips
    Hyperlinks in Tooltips
  [Expand]Saving and Restoring Layouts
   Clipboard - Copy Data and Formatting
   Version Compatibility: Default Property Values
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Customize Tooltips Using the Default ToolTipController

This example demonstrates a way of customizing tooltips by using the Default ToolTipController. This controller's settings can be accessed via the static ToolTipController.DefaultController property or the DefaultToolTipController component, which can be placed on a form.

In this example a tooltip is set for a standard System.Windows.Forms.TextBox control, which will be displayed using the Default ToolTipController. In addition, the controller's settings are customized, so tooltips will be displayed within rounded light-pink boxes with callout beaks. It is assumed that the TextBox control has already been placed on a form.

In order to set tooltips for standard WinForms controls at design time, place the DefaultToolTipController component onto a form. Select the component in the tray to display its settings in the Properties window. Set the controller's settings as follows.

  • Appearance.BackColor to AntiqueWhite
  • ShowBeak to true

To set a tooltip for the TextBox control, display its settings in the Properties window. Set the 'ToolTip on defaultToolTipController1' property to some text.

Now run the application and hover over the TextBox control to activate a tooltip. It will look like the image below.

The code equivalent for these operations is shown below. Unlike the design-time example, the Default ToolTipController will be customized via the static ToolTipController.DefaultController property rather than via the DefaultToolTipController component.

How would you rate this topic?​​​​​​​