Articles in this section
Category / Section

How to add a SuperToolTip to the MonthCalendarAdv control?

1 min read

As the MonthCalendarAdv control contains a number of separate controls combined together, assigning the SuperToolTip for the outer control does not pass it to the child controls.

 

Refer to the following code examples.

 

C#

//Adds a ToolTipinfo through code
Syncfusion.Windows.Forms.Tools.ToolTipInfo toolTipInfo = new Syncfusion.Windows.Forms.Tools.ToolTipInfo();
//Specifies the ToolTip text
toolTipInfo.Body.Text = this.monthCalendarAdv1.Value.ToString();
//Assigns the SuperToolTip to MonthCalendarAdv
foreach (Control ctrl in this.monthCalendarAdv1.Controls)
{
    this.superToolTip1.SetToolTip(ctrl, toolTipInfo);
}

 

VB

'Adds a ToolTipinfo through code
Dim toolTipInfo As New Syncfusion.Windows.Forms.Tools.ToolTipInfo()
'Specifies the ToolTip text
toolTipInfo.Body.Text = Me.monthCalendarAdv1.Value.ToString()
'Assigns the SuperToolTip to MonthCalendarAdv
For Each ctrl As Control In Me.monthCalendarAdv1.Controls
 Me.superToolTip1.SetToolTip(ctrl, toolTipInfo)
Next ctrl

 

MonthCalendar specified with SuperToolTip

Figure 1:MonthCalendar specified with SuperToolTip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied