SelectionEventsClass::OnChange Event

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Occurs after the selection model changes.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

public:
event _dispSelectionEvents_OnChangeEventHandler^ OnChange {
	virtual void add(_dispSelectionEvents_OnChangeEventHandler^ value);
	virtual void remove(_dispSelectionEvents_OnChangeEventHandler^ value);
}

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 OnChange event to occur.

Public Sub SelectionEvents_OnChange() Handles SelectionEvents.OnChange
   MsgBox("test")
End Sub
Return to top
Show: