v-wywang
Fri Mar 14 03:43:33 CDT 2008
Hello Bob,
It seems you are looking for a Saved Event which fires when end user saved
any file. If I misunderstood anything here, please don't hesistate to
correct me.
Have you tried with DocumentEvents.DocumentSaved? If you are not very
fimarly with VS Macro, you may follow the steps as below:
1) In Your Vsisual Sutdio IDE, Click Tools|Marcos|Marcos IDE. Then,
Microsoft Visual Studio Macros IDE will show up.
2) In Microsoft Visual Studio Marcors IDE, Dould click
"MyMacros"|"EnvironmentEvents" file.
3) Select "DocumentEvents" on the "General" list box in navigatio bar.
4) The, select "DocumentSaved" on the right listbox.
5) VS Marcor IDE addes the following code into EnviormentEvents file
automaticlly.
Private Sub DocumentEvents_DocumentSaved(ByVal Document As EnvDTE.Document)
Handles DocumentEvents.DocumentSaved
End Sub
Then, you add any task you want to do when end user saved file. For
example: the following code snippet will show a messagebox shows which file
you saved in Visual Studio.
Private Sub DocumentEvents_DocumentSaved(ByVal Document As EnvDTE.Document)
Handles DocumentEvents.DocumentSaved
System.Windows.Forms.MessageBox.Show("Save File Name:" &
Document.Name)
End Sub
Hope this helps, Please feel free let me know if there is anything unclear.
It's my pleasure to assist you.
Have a great day,
Best regards,
Wen Yuan
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.