Code Samples
The product includes numerous VB.NET and C# sample applications. All
samples include complete source code. For more detailed sample code please
refer to the sample applications.
Receiving StateChanged Events
After dragging the control from the Visual Studio .NET Toolbox
onto your application's form, you can set various properties at
design time. Alternatively. you may also set these properties at runtime.
Optionally, you may receive and act upon events received from the control.
Listing 1 demonstrates receiving StateChanged events.
Private Sub StatePicker_StateChanged(ByVal sender As Object, _
ByVal e As ComponentSpace.StatePicker.StateEventArgs) _
Handles StatePicker.StateChanged
' The StateChanged event is fired whenever the selected state changes.
End Sub
|
Listing 1 Receiving StateChanged events
|