OnMacrosRuntimeReset Event
Visual Studio .NET 2003
Occurs when the common language runtime resets, clearing all global variable data and losing all event connections.
[Visual Basic .NET]
Public Sub OnMacrosRuntimeReset()
[Visual Basic 6]
Sub OnMacrosRuntimeReset()
[C++]
HRESULT __stdcall OnMacrosRuntimeReset();
[C#]
public void OnMacrosRuntimeReset();
[JScript .NET]
public function OnMacrosRuntimeReset()
Remarks
If you connect event handlers not in the EnvironmentEvents host item or initialize global variables, you'll need to re-execute that code in the OnMacrosRuntimeReset event handler, because resetting the macros runtime destroys global variable values and event connections.
Example
Public Sub DTEEvents_OnMacrosRuntimeReset() Handles DTEEvents.OnMacrosRuntimeReset
MsgBox("test")
End Sub
See Also
ModeChanged Event | OnBeginShutdown Event | OnStartupComplete Event
Applies To: DTEEvents Object