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 / IDE / May 2005

Tip: Looking for answers? Try searching our database.

How to reload externally modified file using AddIn

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gerrit Beuze - 26 May 2005 09:55 GMT
Hi all,

After a file has been modified by an external tool,
VS2003 displays something like "File has changed, reload Yes/No/All".
Is there a way to reload the file using the extensibility objects to avoid
this dialog?

I looked in the obvious places:
The Document object does not have a Reload method
and the TextDocument and ItemOperations objects netiher.

I could of course use the TextSelection and EditPoint  objects to
Delete the entire document and then re-insert the text from file,
but I thought there might be an easier way

Thanks in advance,

Gerrit Beuze
ModelMaker Tools
Carlos J. Quintero [.NET MVP] - 26 May 2005 12:47 GMT
Although there is no reload method, you can close the document without
saving changes, modify the file with the external tool, and open it again in
the IDE.

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

> Hi all,
>
[quoted text clipped - 15 lines]
> Gerrit Beuze
> ModelMaker Tools

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.