Version

UltraScrollBarEventIds Enumeration

Enumerations that uniquely identify the UltraScrollBar events.
Syntax
'Declaration
 
Public Enum UltraScrollBarEventIds 
   Inherits System.Enum
public enum UltraScrollBarEventIds : System.Enum 
Members
MemberDescription
MouseEnterElementEvent id that identifies the MouseEnterElement event
MouseLeaveElementEvent id that identifies the MouseLeaveElement event
ScrollEvent id that identifies the Scroll event.
ScrollTipShownEvent is that identifies the ScrollTipShow event.
ValueChangedEvent id that identifies the ValueChanged event.
Example
The following sample code illustrates how to use the UltraScrollBar's event manager

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinScrollBar

Private Sub button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button3.Click

    ' Get the scrollbar control's event manager.
    ' The event manager is used to temporarily disable events
    ' to prevent them from being raised. This can be very
    ' convenient in a situation where one or more properties
    ' are being set in code and the events they would normally 
    ' raise would cause unnecessary or counter-productive
    ' code to be executed.
    '
    ' Note: All events are enabled by default.
    Dim eventManager As UltraScrollBarEventManager

    eventManager = Me.ultraScrollBar1.EventManager

    ' Disable the ValueChanged event
    eventManager.SetEnabled(UltraScrollBarEventIds.ValueChanged, False)

    ' Call the PerformAction to scroll down.
    ' Note: This would normally cause the 'ValueChanged' event to 
    ' be raised. However, since the above code disabled the event
    ' it won't be.
    Me.ultraScrollBar1.PerformAction(ScrollBarAction.SmallIncrement)

    ' Re-enable the ValueChanged event
    eventManager.SetEnabled(UltraScrollBarEventIds.ValueChanged, True)

    ' The 'AllEventsEnabled' property lets you enable/disable
    ' all events will a single line of code. If any event is 
    ' disabled the 'AllEventsEnabled' property returns false.
    If Not eventManager.AllEventsEnabled Then
        eventManager.AllEventsEnabled = True
    End If

    ' The event manager also exposes an 'IsEnabled' method
    ' to see if an event is enabled or disbled.
    If Not eventManager.IsEnabled(UltraScrollBarEventIds.ValueChanged) Then
        eventManager.SetEnabled(UltraScrollBarEventIds.ValueChanged, True)
    End If

    ' The 'InProgress' method will return true if the 
    ' specified event is currently being raised. This
    ' is often helpful in methods that can be called
    ' from various points in an application to determine
    ' what is triggering the call.
    If eventManager.InProgress(UltraScrollBarEventIds.ValueChanged) Then
        ' ... 
    End If

End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinScrollBar;

private void button3_Click(object sender, System.EventArgs e)
{

	// Get the scrollbar control's event manager.
	// The event manager is used to temporarily disable events
	// to prevent them from being raised. This can be very
	// convenient in a situation where one or more properties
	// are being set in code and the events they would normally 
	// raise would cause unnecessary or counter-productive
	// code to be executed.
	//
	// Note: All events are enabled by default.
	UltraScrollBarEventManager eventManager = this.ultraScrollBar1.EventManager;

	// Disable the ValueChanged event
	eventManager.SetEnabled(UltraScrollBarEventIds.ValueChanged, false );

	// Call the PerformAction to scroll down.
	// Note: This would normally cause the 'ValueChanged' event to 
	// be raised. However, since the above code disabled the event
	// it won't be.
	this.ultraScrollBar1.PerformAction( ScrollBarAction.SmallIncrement );

	// Re-enable the ValueChanged event
	eventManager.SetEnabled( UltraScrollBarEventIds.ValueChanged, true );

	// The 'AllEventsEnabled' property lets you enable/disable
	// all events will a single line of code. If any event is 
	// disabled the 'AllEventsEnabled' property returns false.
	if ( !eventManager.AllEventsEnabled )
		eventManager.AllEventsEnabled = true;

	// The event manager also exposes an 'IsEnabled' method
	// to see if an event is enabled or disbled.
	if ( !eventManager.IsEnabled( UltraScrollBarEventIds.ValueChanged ) )
		eventManager.SetEnabled(UltraScrollBarEventIds.ValueChanged, true );

	// The 'InProgress' method will return true if the 
	// specified event is currently being raised. This
	// is often helpful in methods that can be called
	// from various points in an application to determine
	// what is triggering the call.
	if ( eventManager.InProgress( UltraScrollBarEventIds.ValueChanged ) )
	{
		// ... 
	}

}
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