Version

TipStyleActivity Property

Gets/sets whether tooltips will be displayed for Appointment and/or Note objects.
Syntax
'Declaration
 
Public Property TipStyleActivity As TipStyleActivity
public TipStyleActivity TipStyleActivity {get; set;}
Remarks

Note: Since tooltips are never displayed for Holiday objects, the TipStyleActivity property does not apply to Holidays.

Also note that tooltips are never displayed for multi-day Appointment objects.

Example
Demonstrates how the control can be configured to show/hide tooltips for Appointments and/or Notes

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewSingle

    Private Sub SetupActivityTooltips()

        '	Add a few appointments and notes to the first visible day, if there aren't some already
        Dim firstVisibleDate As DateTime = Me.UltraMonthViewSingle1.FirstVisibleDay.Date

        If Me.UltraMonthViewSingle1.CalendarInfo.Appointments.Count = 0 Then
            Me.UltraMonthViewSingle1.CalendarInfo.Appointments.Add(firstVisibleDate, "Today's Appointment #1")
            Me.UltraMonthViewSingle1.CalendarInfo.Appointments.Add(firstVisibleDate, "Today's Appointment #2")
            Me.UltraMonthViewSingle1.CalendarInfo.Appointments.Add(firstVisibleDate, "Today's Appointment #3")
        End If

        If Me.UltraMonthViewSingle1.CalendarInfo.Notes.Count = 0 Then
            Me.UltraMonthViewSingle1.CalendarInfo.Notes.Add(firstVisibleDate, "Note #1 for today")
            Me.UltraMonthViewSingle1.CalendarInfo.Notes.Add(firstVisibleDate, "Note #2 for today")
        End If

        '	Set the VisibleWeeks property to 1 so we can see more activity
        Me.UltraMonthViewSingle1.VisibleWeeks = 1

        '	See if the user wants to display tooltips for Appointments
        Dim result As DialogResult = MessageBox.Show("Would you like to allow tooltips to be displayed for Appointments?", "SetupActivityTooltips", MessageBoxButtons.YesNoCancel)
        If result = DialogResult.Cancel Then Return

        '	Start out with no bits set, then add bits as the user specifies
        Me.UltraMonthViewSingle1.TipStyleActivity = TipStyleActivity.None

        '	If the user wants tooltips to be displayed for Appointments, OR
        '	the Appointments bit into the TipStyleActivity property
        If result = DialogResult.Yes Then
            Me.UltraMonthViewSingle1.TipStyleActivity += TipStyleActivity.Appointments
        End If

        '	See if the user wants to display tooltips for Notes
        result = MessageBox.Show("Would you like to allow tooltips to be displayed for Notes?", "SetupActivityTooltips", MessageBoxButtons.YesNoCancel)
        If result = DialogResult.Cancel Then Return

        '	If the user wants tooltips to be displayed for Notes, OR
        '	the Notes bit into the TipStyleActivity property
        If result = DialogResult.Yes Then Me.UltraMonthViewSingle1.TipStyleActivity += TipStyleActivity.Notes

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using Infragistics.Win.UltraWinSchedule.MonthViewSingle;
using System.Diagnostics;

		private void SetupActivityTooltips()
		{

			//	Add a few appointments and notes to the first visible day, if there aren't some already
			DateTime firstVisibleDate = this.ultraMonthViewSingle1.FirstVisibleDay.Date;

			if ( this.ultraMonthViewSingle1.CalendarInfo.Appointments.Count == 0 )
			{
				this.ultraMonthViewSingle1.CalendarInfo.Appointments.Add( firstVisibleDate, "Today's Appointment #1" );
				this.ultraMonthViewSingle1.CalendarInfo.Appointments.Add( firstVisibleDate, "Today's Appointment #2" );
				this.ultraMonthViewSingle1.CalendarInfo.Appointments.Add( firstVisibleDate, "Today's Appointment #3" );
			}

			if ( this.ultraMonthViewSingle1.CalendarInfo.Notes.Count == 0 )
			{
				this.ultraMonthViewSingle1.CalendarInfo.Notes.Add( firstVisibleDate, "Note #1 for today" );
				this.ultraMonthViewSingle1.CalendarInfo.Notes.Add( firstVisibleDate, "Note #2 for today" );
			}

			//	Set the VisibleWeeks property to 1 so we can see more activity
			this.ultraMonthViewSingle1.VisibleWeeks = 1;

			//	See if the user wants to display tooltips for Appointments
			DialogResult result = MessageBox.Show( "Would you like to allow tooltips to be displayed for Appointments?", "SetupActivityTooltips", MessageBoxButtons.YesNoCancel);
			if ( result == DialogResult.Cancel )
				return;

			//	Start out with no bits set, then add bits as the user specifies
			this.ultraMonthViewSingle1.TipStyleActivity = TipStyleActivity.None;

			//	If the user wants tooltips to be displayed for Appointments, OR
			//	the Appointments bit into the TipStyleActivity property
			if ( result == DialogResult.Yes )
				this.ultraMonthViewSingle1.TipStyleActivity |= TipStyleActivity.Appointments;

			//	See if the user wants to display tooltips for Notes
			result = MessageBox.Show( "Would you like to allow tooltips to be displayed for Notes?", "SetupActivityTooltips", MessageBoxButtons.YesNoCancel);
			if ( result == DialogResult.Cancel )
				return;

			//	If the user wants tooltips to be displayed for Notes, OR
			//	the Notes bit into the TipStyleActivity property
			if ( result == DialogResult.Yes )
				this.ultraMonthViewSingle1.TipStyleActivity |= TipStyleActivity.Notes;

		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also