Hi Ronnie,
That's right, the macro can be running all the time as long as the macro
project is loaded (once it's loaded, you don't have to load it again
manually next time you start Visual Studio).
In every macro project, there's a module named "EnvironmentEvents". If you
select "DebuggerEvents" in the up-left Combobox, then select
"OnEnterDesignMode" in the up-right ComboBox, it will generate a event
handler for you, then you can add you code there. For example:
Private Sub DebuggerEvents_OnEnterDesignMode(ByVal Reason As
EnvDTE.dbgEventReason) Handles DebuggerEvents.OnEnterDesignMode
MsgBox("Debugging is stopped!")
End Sub
This will show a message box whenever you stopped debugging. To run some
external application, use the Shell() function.
Please let me know if you need further information.
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 23 Aug 2007 04:49 GMT
Hi Ronnie,
I'm about to close this post since we need to update a post every 2
business days. Since you don't have further questions, I will close it for
now. If you have any further questions regarding macro/add-in in Visual
Studio, please feel free to post here. Thanks.
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.