)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set tooltip for each DateValue in WinForms MonthCalendarAdv?

Platform: WinForms |
Control: MonthCalendarAdv |
Published Date: May 19, 2015 |
Last Revised Date: January 6, 2020

Tooltip

In MonthCalendarAdv, ToolTip can be assigned to any date value by handling DateHover event.

DateHover

This event handler is raised when mouse hover on date value of MonthCalendarAdv.

  • ToolTip appearance can be customized by using its BackColor, BorderColor, ForeColor, Header, Fooder, Body and Separator properties.
  • The style of the ToolTip can be specified by using its ToolTipStyle property and it has three styles. They are
  • Balloon
  • Normal
  • Office2013

C#

//This event triggers once mouse hover on date
this.monthCalendarAdv1.DateHover += new Syncfusion.Windows.Forms.Tools.DateHoverEventHandler(monthCalendarAdv1_DateHover);
void monthCalendarAdv1_DateHover(object sender, Syncfusion.Windows.Forms.Tools.DateHoverEventArgs e)
{
    e.ToolTip.Body.Text = e.DateValue.ToString();
    e.ToolTipStyle = Syncfusion.Windows.Forms.Tools.ToolTipStyle.Ballon;
}

VB

AddHandler monthCalendarAdv1.DateHover, AddressOf monthCalendarAdv1_DateHover
'This event triggers once mouse hover on date
Private Sub monthCalendarAdv1_DateHover(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Tools.DateHoverEventArgs)
 e.ToolTip.Body.Text = e.DateValue.ToString()
 e.ToolTipStyle = Syncfusion.Windows.Forms.Tools.ToolTipStyle.Ballon
End Sub

The following screenshot displays the Balloon style ToolTip in MonthCalendarAdv.

Balloon style tooltip in MonthCalendarAdv

Figure 1:Balloon style ToolTip in MonthCalendarAdv

Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/135929/MonthCalendar_ToolTip-732052511.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/135929/MonthCalendar_ToolTip_VB-2109516116.zip

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon