'Declaration Public Overridable Function PerformKeyAction( _ ByVal actionCode As MonthViewMultiAction, _ ByVal shift As Boolean, _ ByVal control As Boolean _ ) As Boolean
public virtual bool PerformKeyAction( MonthViewMultiAction actionCode, bool shift, bool control )
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.MonthViewMulti Private Sub ActivateFirstDayInPreviousMonth() ' Use the PerformAction method to scoll the control one month ' into the past Me.ultraMonthViewMulti1.PerformAction(MonthViewMultiAction.ScrollPrevious) ' Use the PerformKeyAction method to activate the first day in the month ' Note that we use PerformKeyAction because this action requires that the ' Ctrl key be pressed, and the PerformAction method does not support ' simulated pressing of special keys. Me.ultraMonthViewMulti1.PerformKeyAction(MonthViewMultiAction.FirstDayOfMonth, False, True) End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.MonthViewMulti; private void ActivateFirstDayInPreviousMonth() { // Use the PerformAction method to scoll the control one month // into the past this.ultraMonthViewMulti1.PerformAction( MonthViewMultiAction.ScrollPrevious ); // Use the PerformKeyAction method to activate the first day in the month // Note that we use PerformKeyAction because this action requires that the // Ctrl key be pressed, and the PerformAction method does not support // simulated pressing of special keys. this.ultraMonthViewMulti1.PerformKeyAction( MonthViewMultiAction.FirstDayOfMonth, false, true ); }
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