Category / Section
How to add a SuperToolTip to the MonthCalendarAdv control?
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

Figure 1:MonthCalendar specified with SuperToolTip