Discussion:
Reloading code
(too old to reply)
bad-guy
2009-01-19 16:17:27 UTC
Permalink
Is it possible to reload (reread from disk) a form/module without closing
and reloading the whole project? What Visual Basic Extensibility
objects/methods are essential for this task?
Dean Earley
2009-01-19 17:13:27 UTC
Permalink
Post by bad-guy
Is it possible to reload (reread from disk) a form/module without
closing and reloading the whole project? What Visual Basic Extensibility
objects/methods are essential for this task?
Not in any way I've seen native to VB.

You could try loading the file in your addin and replacing the editor
contents, but this wont help with form designs or module properties.
--
Dean Earley (***@icode.co.uk)
i-Catcher Development Team

iCode Systems
Tim Rude
2009-01-19 19:05:17 UTC
Permalink
MZ-Tools is a great free addin that adds this (among many other
capabilities).

www.mztools.com
--
Tim Rude

***@NOSPAM.hotmail.com
(remove NOSPAM. for correct email address)
Post by Dean Earley
Post by bad-guy
Is it possible to reload (reread from disk) a form/module without
closing and reloading the whole project? What Visual Basic Extensibility
objects/methods are essential for this task?
Not in any way I've seen native to VB.
You could try loading the file in your addin and replacing the editor
contents, but this wont help with form designs or module properties.
--
i-Catcher Development Team
iCode Systems
Dean Earley
2009-01-20 10:26:44 UTC
Permalink
Post by Tim Rude
MZ-Tools is a great free addin that adds this (among many other
capabilities).
So it does...

I've never noticed that before :)

Thanks
--
Dean Earley (***@icode.co.uk)
i-Catcher Development Team

iCode Systems
n***@3web.net
2009-01-20 06:05:35 UTC
Permalink
Post by bad-guy
Is it possible to reload (reread from disk) a form/module without closing
and reloading the whole project? What Visual Basic Extensibility
objects/methods are essential for this task?
STEP A:
In the project window, right click on the form/module you wish to
reload.
Select delete... Select No when asked to save Form/Module

STEP B:
Click on Project... Select Add Form / Add Module etc
select existing form / module
Locate and select project / module that was removed in step A

Now you effectively only reloaded the desired form / module.
Loading...