Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / August 2007

Tip: Looking for answers? Try searching our database.

Event Toaster Source to add new events?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ronnie Smith - 14 Aug 2007 17:44 GMT
Hello,

I'd love to be able to add some more events into EventToaster.
For example it would be great to run a command when the event "Debug.Stop
Debugging" takes place.

Does anyone know if the source code is available - or does anyone have
anything else that would do this?

Thanks,

Ronnie
Walter Wang [MSFT] - 15 Aug 2007 08:59 GMT
Hi Ronnie,

Please note EventToaster is released under Microsoft Permissive License and
is not officially supported by Microsoft.

I've also done some research and didn't find its source code available.

If your initial objective is to run some custom command when the program is
stopped debugging or running, I think you should be able to use Visual
Studio Macro to do the equivalent task: there's a EnvironmentEvents module
which contains variable IDE events such as DocumentEvents, DebuggerEvents,
etc. Let me know if want to go this way.

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.
Ronnie Smith - 20 Aug 2007 17:00 GMT
Hi Walter,

Thank you for the helpful response and the research you did for me.
I will take a look at the topic:

How to: Handle Environment Events in Macros

So - I guess the macro can be running all the time that I'm
using Visual Studio?

Thanks again for your help,

Ronnie

> Hi Ronnie,
>
[quoted text clipped - 19 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 21 Aug 2007 02:40 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.