'宣言 Public Overloads Overridable Function PerformAction( _ ByVal actionCode As CalendarComboAction _ ) As Boolean
public virtual bool PerformAction( CalendarComboAction actionCode )
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 ); }