473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Whoopsies...

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
Nov 21 '05 #1
5 940
Hi,

In the view menu take a look at toolbars.
Ken
------------------
"Nick" <so*****@somewhere.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #2
Ken,

Thanks for your reply, but my macro closed the menu bar you refer to.
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OG**************@TK2MSFTNGP14.phx.gbl...
Hi,

In the view menu take a look at toolbars.
Ken
------------------
"Nick" <so*****@somewhere.com> wrote in message
news:Od**************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #3
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...

--

Carlos J. Quintero (Visual Developer - .NET MVP)

The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com
"Nick" <so*****@somewhere.com> escribió en el mensaje
news:Od**************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #4
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....

--

Carlos J. Quintero (Visual Developer - .NET MVP)

The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com
"Nick" <so*****@somewhere.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP12.phx.gbl...
Carlos,

Thanks for the advice. I've run the macro again using enabled = true it
doesn't help.
Its the menu bars and the toolbars which have disappeared.

I think this screen dump illuminates my problem succintly.

Regards,

Nick

Nov 21 '05 #5
Carlos, you are a life saver.

Thank you very much
"Carlos J. Quintero [MVP]" <ca*****@NOSPAMsogecable.com> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl...
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....

--

Carlos J. Quintero (Visual Developer - .NET MVP)

The MZ-Tools all-in-one add-in, now for .NET: http://www.mztools.com
"Nick" <so*****@somewhere.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP12.phx.gbl...
Carlos,

Thanks for the advice. I've run the macro again using enabled = true it
doesn't help.
Its the menu bars and the toolbars which have disappeared.

I think this screen dump illuminates my problem succintly.

Regards,

Nick


Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.