Back to product page

StateChange event


Fires when component changes its state.

Syntax

  • Basic
Private Sub object_StateChange(OldState)
The StateChange(object,OldState) syntax has these parts:
objectA wodAppUpdate object.
OldStateAn UpdateStates enumeration, as described in settings. Holds previous state.

Remarks

Settings

The settings for Action are:

Constant Value Description
StateNotConnected0 Not connected.
StateCheckingUpdates 1 Checking for new updates.
StateDownloadingFile 2 Downloading new updates.
StateUpdating 3 Replacing updates.


This event is fired every time the wodAppUpdate control changes the current operation that it is performing. Even though most of these operations also result in firing other events, the user can monitor this event to see the reason for an operation's completing unsuccessfully, or can ignore other events and take appropriate action depending on the wodAppUpdate's State property value.

Refer also to the here for a list of possible states.

Platforms

Windows