Version

OnAfterSpin Method

Raises the AfterSpin event after the Value property has been changed via a spin button or arrow key.
Syntax
'Declaration
 
Protected Overridable Sub OnAfterSpin( _
   ByVal e As AfterSpinEventArgs _
) 
protected virtual void OnAfterSpin( 
   AfterSpinEventArgs e
)

Parameters

e
An AfterSpinEventArgs that provides data for the event.
Remarks

Raising an event invokes the event handler through a delegate.

The OnAfterSpin method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors: When overriding OnAfterSpin in a derived class, be sure to call the base class's OnAfterSpin method so that registered delegates receive the event.

Example
NOTE: This example requires that the control's SpinButtonsVisible property be set to True, like so:
Me.ultraCalendarCombo1.SpinButtonsVisible = True
Private Sub ultraCalendarCombo1_AfterSpin(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.AfterSpinEventArgs) Handles ultraCalendarCombo1.AfterSpin

       Dim direction As String = String.Empty
       Dim info As String = String.Empty

       '	Use the AfterSpinEventArgs' SpinDirection property
       '	to determine whether the up or down spin button was clicked
       If (e.SpinDirection = ScrollButton.Up) Then
           direction = " 'Up' "
       Else
           direction = " 'Down' "
       End If

       '	Output information about the event to the debugger
       info += "The" + direction + "button was clicked." + vbCrLf
       info += "The control's new value is " + Me.ultraCalendarCombo1.Value.ToString()
       System.Diagnostics.Debug.WriteLine(info)

   End Sub
NOTE: This example requires that the control's SpinButtonsVisible property be set to true, like so:
this.ultraCalendarCombo1.SpinButtonsVisible = true;
private void ultraCalendarCombo1_AfterSpin(object sender, Infragistics.Win.UltraWinSchedule.AfterSpinEventArgs e)
{

	string direction = string.Empty;
	string info = string.Empty;

	//	Use the AfterSpinEventArgs' SpinDirection property
	//	to determine whether the up or down spin button was clicked
	if ( e.SpinDirection == ScrollButton.Up )
		direction = " 'Up' ";
	else
		direction = " 'Down' ";

	//	Output information about the event to the debugger
	info += "The" + direction + "button was clicked." + "\n";
	info += "The control's new value is " + this.ultraCalendarCombo1.Value.ToString();
	System.Diagnostics.Debug.WriteLine( info );

}
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