By default, the UltraMonthViewMulti control can receive focus but there may be some cases where you may not want mouse interaction with the control to take focus away from the current control. The AllowFocus property determines whether the control is selectable and therfore, whether it will take focus.
Note: The control will not receive any key notifications when it does not have focus. Therefore, when the AllowFocus property is false, the user will not be able to navigate the control using the keyboard.
Private Sub EnableKeyboardOperation(ByVal enable As Boolean) ' Use the AllowFocus property to allow the control to receive ' the input focus; if the control cannot receive focus, it cannot ' process keystrokes, so setting the property to false effectively ' disables keyboard functionality. If (enable) Then Me.ultraMonthViewMulti1.AllowFocus = True Else Me.ultraMonthViewMulti1.AllowFocus = False End If End Sub
private void EnableKeyboardOperation( bool enable ) { // Use the AllowFocus property to allow the control to receive // the input focus; if the control cannot receive focus, it cannot // process keystrokes, so setting the property to false effectively // disables keyboard functionality. if ( enable ) this.ultraMonthViewMulti1.AllowFocus = true; else this.ultraMonthViewMulti1.AllowFocus = false; }
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