This documentation is archived and is not being maintained.

OnChange Event

Visual Studio .NET 2003

Occurs after the selection model changes.

[Visual Basic .NET]
Public Sub OnChange() 
[Visual Basic 6]
Sub OnChange() 
[C++]
HRESULT __stdcall OnChange();
[C#]
public void OnChange();
[JScript .NET]
public function OnChange()

Remarks

Whenever something is selected in the development environment, a model of what the user has selected is created. A change in this model causes the OnChanged event to occur.

Example

Public Sub SelectionEvents_OnChange() Handles SelectionEvents.OnChange
   MsgBox("test")
End Sub

See Also

Applies To: SelectionEvents Object

Show: