How to reload externally modified file using AddIn

Visual Studio .Net

    Next

  • 1. Another #region suggestion
    When double-clicking a form in design mode to automatically add an event, the code always ends up the bottom of the module. I would like to see a change that would allow the user to define the region that events will show up in. For instance, when I create a new user control, I have default regions set for (among other things) properties, methods, helper (internal) functions, and events. It would be helpful if the code went directly into the "events" #region.
  • 2. #region Suggestion
    The #region keyword would be more helpful if it stood out more in the IDE code window, making it easier to find each section with a quick glance. The #region is helpful at design time, and could be better utilized. My suggestion is to have another IDE option to set the font size and color for #region. By default, possibly change it to stand out more.
  • 3. How can I configure a partioned solution ??? VS2003
    Hi everbody, I don't know how to create a partioned solution with VS2003. I can add more than one project to my Solution1 but I think I have to create Child-Solutions of Solution1 for a partioned solution!??? Can you help me? Greetings Martin
  • 4. vs 2005 beta 2 - web service data menu not available
    Hi I am working with vs 2005 beta 2 I have a web service project The problem is that i cant create a data source, the data menu is not available at all, and i have no way of getting access to the data base other that creating the c# to do it manually... Regards Greg Phillips
  • 5. Stupid Newby - header file question
    Hello, I am new to C++, but not to programming. I've created a class in the same file as the main function of a console app which uses the class. Now I want to put the class in a file of its own, so I can use it in other situations. Obviously I need a header file for the class, so I can refer to it. I'm surprised that there isn't a tool to generate the header file for me. Is it sufficient to just copy out the declaration part from the top of the class? In that case should I remove it from the cpp file altogether and refer to the header file from there as well, so it's always in sync? What if I just make a header file that includes the entire class? Some of the cpp header files I've seen do seem to include the code. Hopefully I'll be coming up with better questions in the future! Thanks Marc Pelletier

How to reload externally modified file using AddIn

Postby Gerrit Beuze » Fri, 27 May 2005 17:55:06 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



Re: How to reload externally modified file using AddIn

Postby Carlos J. Quintero [.NET MVP] » Fri, 27 May 2005 20:47:16 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.

-- 

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.**--****.com/ 

"Gerrit Beuze" <gerrit[at]modelmaker[dot]demon[dot]nl> escribien el 


>> 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
>>
>> 



Similar Threads:

1.Took a long time to reload a page after modifying a XML file

2.Multi-Project Reload When Proj File Modified Outside VS.Net 2003

I am using VS.Net 2003 Ent Arch along with CVS. I have a solution with 
multi-projects open. When a single proj file is updated (by CVS, or anything 
else) VS.Net correctally detects it and asks if you want to reload the 
project. Everything works great.

The problem occurs when two or more project files are updated but only one 
is updated. I set focus to WinCVS and do update on dir tree that causes two 
proj files to be updated. When I set focus back to VS.Net it detects one and 
asks to reload. I choose yes but the other never gets reloaded.

The workaround is to close and reopen the solution to get the updates to the 
second proj file that was updated.

Extra Info: VS.Net 2003 Ent Arch, Proj files are all c/c++, about 15 proj 
files in single solution file, 1 proj is c lib, 2 are c dlls, rest are c/c++ 
exes.

If more info is needed e-mail me at rdls22ATtditxDOTcom.

Thanks,
SLDR
(Stephen L. De Rudder)

3.Open file in application externally

I'm using VB.net 2005 - -
I have 2 questions, actually - - -
1. I remember, in VB6, there was a way, to set command line parameters or
something, so that, if you use the 'Open With' option, or dragged a file
onto the MDI interface, it would open inside the interface.

2. How can I make it so that, if the application is already open, trying to
do the above will not open a new instance, but open it with the currently
open instance?

Does anyone know how this all is done in VS.Net 2005?


4.Accessing files externally

5.Adding,Deleting and modifying the xml file using asp.net tree view control

6. Using Web Services to Modify an XML File?

7. Modify code using a hash table in comparing two text files

8. How to modify the EXE file using VB.NET



Return to Visual Studio .Net

 

Who is online

Users browsing this forum: No registered users and 62 guest