Whoopsies...

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi all,

Sorry for the cross posting.

I am in the process of writing a VS macro to modify the windows and tool
bars displayed by VS on start up. The following code is the problem:

Dim myCommandbar as Windows.Office.Core.CommandBar
For Each myCommandbar in DTE.Commandbars
myCommandbar.Enabled = False
Next

Dim myWin as Window
For Each myWin In DTE.Windows
myWin.Close(vsSaveChanges.vsSaveChangesNo)
Next

So, yes. My macro closes all tool bars and windows within VS.net. The
problem is that I do not know the keyboard shortcuts to bring back the
standard 'File' toolbar or where the VS config file maybe in order to get
them back, maybe even the macro code?

Anyone able to save my blushes?

Thanks in advance.

Nick
 
Hi,

In the view menu take a look at toolbars.


Ken
------------------
Hi all,

Sorry for the cross posting.

I am in the process of writing a VS macro to modify the windows and tool
bars displayed by VS on start up. The following code is the problem:

Dim myCommandbar as Windows.Office.Core.CommandBar
For Each myCommandbar in DTE.Commandbars
myCommandbar.Enabled = False
Next

Dim myWin as Window
For Each myWin In DTE.Windows
myWin.Close(vsSaveChanges.vsSaveChangesNo)
Next

So, yes. My macro closes all tool bars and windows within VS.net. The
problem is that I do not know the keyboard shortcuts to bring back the
standard 'File' toolbar or where the VS config file maybe in order to get
them back, maybe even the macro code?

Anyone able to save my blushes?

Thanks in advance.

Nick
 
Ken,

Thanks for your reply, but my macro closed the menu bar you refer to.
 
To make a toolbar visible again, you right-click on any toolbar and select
it in the context menu. Or go to Tools, Customize... menu, Toolbars tab. Or
run again the macro using Enabled = True...
 
Ok, this is a bit severe, but:

- Close all IDE instances.
- Open a VS.NET DOS prompt and run:

devenv.exe /setup

This will reset all your customizations....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top