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 / June 2006

Tip: Looking for answers? Try searching our database.

Suppress reload message in VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill O'Neill - 21 Jun 2006 03:12 GMT
Hi,

I created a plug-in that is used to modify the current source file in
VS2005. When the plug-in terminates I expectedly receive the VS2005 message,
"This file has been modified outside the source editor."

I would really like to suppress this message and instead automatically
reload the file for the user. Does anyone know how to do this? I restored
the original date/time stamp on the file but VS2005 picks up the change
regardless of the file date/time stamp. Maybe it's using a file watcher?
Maybe it's just magic.

Any help would be appreciated.

Thank you,
Bill
Carlos J. Quintero [VB MVP] - 21 Jun 2006 09:53 GMT
Hi Bill,

Maybe your plug-in should use the automation model to modify the file inside
the IDE, are you actually modifying it outside it? If so, there is no reload
method in the automation model but there are Close methods in the
EnvDTE.Window and EnvDTE.Document classes (with a parameter to save/discard
changes) and a ProjectItem.Open(view) method which returns an EnvDTE.Window
which you have to set to  Visible = True. My MZ-Tools add-in (below) has a
Reload Document feature so it can be done...

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> Hi,
>
[quoted text clipped - 12 lines]
> Thank you,
> Bill
Bill O'Neill - 21 Jun 2006 12:49 GMT
Thank you Carlos. That will work for what I need.

I love your site. There's a lot of great tools there!

Take care,
Bill

> Hi Bill,
>
[quoted text clipped - 22 lines]
>> Thank you,
>> Bill

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.