Visio Guy

Visio Discussions => Programming & Code => Topic started by: perry59 on March 31, 2015, 03:45:05 PM

Title: debugging in VS
Post by: perry59 on March 31, 2015, 03:45:05 PM
When debugging a visio add in with Visual Studio, sometimes I want change what I have in a command bar, add or remove items or change an icon, etc.
however, when visio starts up via the debugger, I see "older" command bars, i.e. something I removed in the code (and resources) still appears in the command bar (and does nothing).
Evidently, these resources get installed somewhere for visio's use, but don't necessarily get rebuilt on subsequent builds of the add in.
Where do I find these items so I can manually delete the "old" stuff?
thanks
perry

Title: Re: debugging in VS
Post by: Yacine on March 31, 2015, 04:22:36 PM
Last time I removed the command bars by de-installing my plug-in. Not sure if that would apply to your project as well.
Title: Re: debugging in VS
Post by: Nikolay on March 31, 2015, 04:58:07 PM
Try simply removing the command bar from Visio UI (Tools-> Customize -> Select the command bar -> Delete),
so that it's constructed from scratch.

Or, you can delete the user UI settings file (visio 2007):
C:/Users/{user}/Application Data/Microsoft/Visio/custom12.vsu
Title: Re: debugging in VS
Post by: perry59 on March 31, 2015, 05:46:40 PM
Quote from: Nikolay on March 31, 2015, 04:58:07 PM
Try simply removing the command bar from Visio UI (Tools-> Customize -> Select the command bar -> Delete),
so that it's constructed from scratch.

Or, you can delete the user UI settings file (visio 2007):
C:/Users/{user}/Application Data/Microsoft/Visio/custom12.vsu

That did the trick Nikola, Thanks!