6

Background
I am working with VB6 legacy code and I am using an external editor because of the features that it has. Unfortunately, those changes aren't refreshed in the IDE because VB6 doesn't monitor loaded code for changes.

I have done some extensive searching on the subject including looking for alternative editors, a fairly exhaustive internet search including following all of the links on this StackExchange link and haven't found a way to refresh the code window to reflect the external file changes.

My company doesn't have access to the latest edition of Visual Studio and will not be purchasing it anytime in the near future. Until then, there is code to fix.

Question
Aside from restarting the program are there any methods that can be used to refresh the code displayed in the VB6 editing window?

7
  • 3
    From your "background" section it sounds like you've done good research, so you may have considered this already. But here goes: did you consider not using the VB6 IDE at all, and compiling from your external editor? You can launch the VB6 compilation from the command-line.
    – MarkJ
    Jul 16, 2014 at 11:15
  • @MarkJ . Thanks for the information. I think that a command-line compile would be the best for me. The project consists of multiple dlls that are compiled into to a single executable. The order of compilation is pretty important too, but I think I can get it. Are there any sites with good information on managing an environment like this? Jul 16, 2014 at 12:33
  • 'latest version of Visual Studio' You do realise that the latest version of VS that can edit VB6 is Visual Studio 6.0. Surely you can pick it up cheaply secondhand? What features do you require in an IDE that VB6 doesn't have? Jul 29, 2014 at 13:06
  • 2
    @ClaraOnager here is a link to a plugin for VS 2012 that allows one to edit VB6 projects without upgrading them Visual Basic Tools for Visual Studio Jul 29, 2014 at 13:34
  • So are you using Visual Studio 6.0 or Visual Studio 2012? Jul 31, 2014 at 7:47

2 Answers 2

6

Check out vbAdvance add on. It will prompt you to reload source file in case of external modification.

1
  • This works well, almost perfectly as thought it were a native feature of the IDE. Oct 25, 2018 at 18:04
2

I think a found one possible solution.

The MZ-Tools set has an function called Reload file from Disk. It also allowed me to create a shortcut for this function through the MZ-Tools options menu, so I assigned it to the shortcut keys of my choosing.

It's a solution, but I'm still looking for anything that might be better.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.