Version

PerformAction(CalendarComboAction,Boolean,Boolean) Method

Performs the action specified.
Syntax
'Declaration
 
Public Overloads Overridable Function PerformAction( _
   ByVal actionCode As CalendarComboAction, _
   ByVal shift As Boolean, _
   ByVal control As Boolean _
) As Boolean
public virtual bool PerformAction( 
   CalendarComboAction actionCode,
   bool shift,
   bool control
)

Parameters

actionCode
Enumeration indicating the action to take.
shift
Indicates if the shift key is depressed
control
Indicates if the control key is depressed

Return Value

true if the action completed successfully, false if the action failed.
Example
This example uses the PerformAction method, which simulates user interaction with the control, to display the dropdown calendar and activate the first day of the first visible month while preserving the current date range selection.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    '	Use the 'DropDown' action to programmatically display the dropdown calendar
    Me.ultraCalendarCombo1.PerformAction(Infragistics.Win.UltraWinSchedule.CalendarCombo.CalendarComboAction.DropDown)


    '	Use the overload of the PerformAction method that allows simulated
    '	pressing of the Control and Shift keys to activate the first day of the
    '	month while preserving the current selection
    Me.ultraCalendarCombo1.PerformAction(Infragistics.Win.UltraWinSchedule.CalendarCombo.CalendarComboAction.FirstDayOfMonth, False, True)

End Sub
private void button1_Click(object sender, System.EventArgs e)
{

	//	Use the 'DropDown' action to programmatically display the dropdown calendar
	this.ultraCalendarCombo1.PerformAction( Infragistics.Win.UltraWinSchedule.CalendarCombo.CalendarComboAction.DropDown );


	//	Use the overload of the PerformAction method that allows simulated
	//	pressing of the Control and Shift keys to activate the first day of the
	//	month while preserving the current selection
	this.ultraCalendarCombo1.PerformAction( Infragistics.Win.UltraWinSchedule.CalendarCombo.CalendarComboAction.FirstDayOfMonth, false, true );

}
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