473,387 Members | 1,536 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,387 software developers and data experts.

Real Full Screen of the VS IDE

Hi, when switched to the full screen mode in VS.NET IDE, is there any way to
hide the main menu bar?

Thanks
Tony
Nov 13 '05 #1
6 5586
Thanks for replying, but I mean the menu bar in the Visual Studio.NET itself
when I switch to full screen mode.
Anyways, thanks for replying.

Tony
"Hector Martinez" <hm********@uci.cu> wrote in message
news:96****************************@phx.gbl...

if all that you need is hide the menu bar, you just can
set in "false" the property Visible for each MenuItem...

And maybe you can make that just hiding the principal
item for each menu in the MenuBar...
I hope this help!!!

Nov 13 '05 #2
It doesn't look like it, does it?
If you right click on the menu bar and choose "Customize", there are
options for what to show or hide. Trying to uncheck "MenuBar" just beeps at
me.

That would suggest that Microsoft don't want you to do that. :|

Perhaps time to explore VS.Net Plugins... ;)

Cheers,
Simon.

"Tony Liu" <en*******@hotmail.com> wrote in
news:O9**************@TK2MSFTNGP11.phx.gbl:
Thanks for replying, but I mean the menu bar in the Visual Studio.NET
itself when I switch to full screen mode.
Anyways, thanks for replying.

Tony


Nov 13 '05 #3
Hmm, if anyone's interested I've had a look at a VS.Net plugin to do
this.

Starting with an Add-In using the wizard, by enumerating through the
application command bars and I can get to the "FullScreen" button and
subscribe to its 'Click' Event.

Inside that, I can find the MenuBar, which is a good start.

Setting bar.Visible=false throws an "Unspecified error".
Setting bar.Enabled=false gets rid of it as required (I don't know what
side-effects it might have).

But I can't get it back!

Setting enabled to true does nothing. I've been toying with
CommandBars.Add, and it appears tantalisingly for a moment, then throws a
"The parameter is incorrect" error...

Any ideas?

Code at http://www.alysseum.com/vsaddin.html

Cheers,
Simon.

Simon Bayling <sf*@alysseum.com> wrote in
news:Xn************************@194.106.32.13:
Perhaps time to explore VS.Net Plugins... ;) "Tony Liu" <en*******@hotmail.com> wrote in
news:O9**************@TK2MSFTNGP11.phx.gbl:
Thanks for replying, but I mean the menu bar in the Visual Studio.NET
itself when I switch to full screen mode.
Anyways, thanks for replying.

Tony


Nov 13 '05 #4
Thanks for reply, do you mean that your can't get the menu bar back even if
your added isn't loaded? or you just can't get it back during your addin's
session?

Tony
"Simon Bayling" <sf*@alysseum.com> wrote in message
news:Xn************************@194.106.32.13...
Hmm, if anyone's interested I've had a look at a VS.Net plugin to do
this.

Starting with an Add-In using the wizard, by enumerating through the
application command bars and I can get to the "FullScreen" button and
subscribe to its 'Click' Event.

Inside that, I can find the MenuBar, which is a good start.

Setting bar.Visible=false throws an "Unspecified error".
Setting bar.Enabled=false gets rid of it as required (I don't know what
side-effects it might have).

But I can't get it back!

Setting enabled to true does nothing. I've been toying with
CommandBars.Add, and it appears tantalisingly for a moment, then throws a
"The parameter is incorrect" error...

Any ideas?

Code at http://www.alysseum.com/vsaddin.html

Cheers,
Simon.

Simon Bayling <sf*@alysseum.com> wrote in
news:Xn************************@194.106.32.13:
Perhaps time to explore VS.Net Plugins... ;)

"Tony Liu" <en*******@hotmail.com> wrote in
news:O9**************@TK2MSFTNGP11.phx.gbl:
Thanks for replying, but I mean the menu bar in the Visual Studio.NET
itself when I switch to full screen mode.
Anyways, thanks for replying.

Tony

Nov 13 '05 #5
Hello Tony,

I don't think you could remove menu bar in full mode in IDE settings.
However, as Simon mentioned, you may be able to achieve it by developing an
add-in.

BTW, vsnet->IDE should be the best group for this question. :)

Thanks.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com
--------------------
!From: "Tony Liu" <en*******@hotmail.com>
!References: <eq**************@TK2MSFTNGP11.phx.gbl>
<96****************************@phx.gbl>
<O9**************@TK2MSFTNGP11.phx.gbl>
<Xn************************@194.106.32.13>
<Xn************************@194.106.32.13>
!Subject: Re: Real Full Screen of the VS IDE
!Date: Thu, 10 Jul 2003 09:35:16 +0800
!Lines: 51
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.3790.0
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
!Message-ID: <eD**************@tk2msftngp13.phx.gbl>
!Newsgroups: microsoft.public.dotnet.languages.csharp
!NNTP-Posting-Host: cm203-168-247-148.hkcable.com.hk 203.168.247.148
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:168110
!X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
!
!Thanks for reply, do you mean that your can't get the menu bar back even if
!your added isn't loaded? or you just can't get it back during your addin's
!session?
!
!Tony
!
!
!"Simon Bayling" <sf*@alysseum.com> wrote in message
!news:Xn************************@194.106.32.13...
!> Hmm, if anyone's interested I've had a look at a VS.Net plugin to do
!> this.
!>
!> Starting with an Add-In using the wizard, by enumerating through the
!> application command bars and I can get to the "FullScreen" button and
!> subscribe to its 'Click' Event.
!>
!> Inside that, I can find the MenuBar, which is a good start.
!>
!> Setting bar.Visible=false throws an "Unspecified error".
!> Setting bar.Enabled=false gets rid of it as required (I don't know what
!> side-effects it might have).
!>
!> But I can't get it back!
!>
!> Setting enabled to true does nothing. I've been toying with
!> CommandBars.Add, and it appears tantalisingly for a moment, then throws a
!> "The parameter is incorrect" error...
!>
!> Any ideas?
!>
!> Code at http://www.alysseum.com/vsaddin.html
!>
!> Cheers,
!> Simon.
!>
!> Simon Bayling <sf*@alysseum.com> wrote in
!> news:Xn************************@194.106.32.13:
!>
!> > Perhaps time to explore VS.Net Plugins... ;)
!>
!> > "Tony Liu" <en*******@hotmail.com> wrote in
!> > news:O9**************@TK2MSFTNGP11.phx.gbl:
!> >
!> >> Thanks for replying, but I mean the menu bar in the Visual Studio.NET
!> >> itself when I switch to full screen mode.
!> >> Anyways, thanks for replying.
!> >>
!> >> Tony
!>
!
!
!

Nov 13 '05 #6
Actually we can just use Macro to do this. What I do is, first toggle the
FullScreen command, and then determine whether the IDE is now in FullScreen
mode or not by comparing the main window's bounds to the screen bounds. I
found that when the IDE is in FullScreen mode, it's bounds is always equals
to the screen bounds (provided that the status bar is not visible), and in
normal mode, the location of the IDE are (-4, -4) when maximized on my
computer. After that, just enable or disable the menu bar at will. Also,
after re-enabling the menu bar, we need to set the Visible to true.

It works well for me for the last couple days.

Simonm, thanks for your code sample.

Sub ToggleFullScreen()

DTE.ExecuteCommand("View.FullScreen")

Dim screen As System.Drawing.Rectangle
screen = System.Windows.Forms.Screen.PrimaryScreen.Bounds

Dim cmd As Microsoft.Office.Core.CommandBar
cmd = DTE.CommandBars("MenuBar")
cmd.Protection =
Microsoft.Office.Core.MsoBarProtection.msoBarNoPro tection

If DTE.MainWindow.Left = screen.Left And DTE.MainWindow.Top =
screen.Top And _
DTE.MainWindow.Width = screen.Width And DTE.MainWindow.Height =
screen.Height Then
' If in full screen view
cmd.Enabled = False
Else
' If not in full screen view
cmd.Enabled = True
End If

If cmd.Enabled Then cmd.Visible = True

End Sub


"Yan-Hong Huang[MSFT]" <yh*****@online.microsoft.com> wrote in message
news:HR**************@cpmsftngxa06.phx.gbl...
Hello Tony,

I don't think you could remove menu bar in full mode in IDE settings.
However, as Simon mentioned, you may be able to achieve it by developing an add-in.

BTW, vsnet->IDE should be the best group for this question. :)

Thanks.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights. Got .Net? http://www.gotdotnet.com
--------------------
!From: "Tony Liu" <en*******@hotmail.com>
!References: <eq**************@TK2MSFTNGP11.phx.gbl>
<96****************************@phx.gbl>
<O9**************@TK2MSFTNGP11.phx.gbl>
<Xn************************@194.106.32.13>
<Xn************************@194.106.32.13>
!Subject: Re: Real Full Screen of the VS IDE
!Date: Thu, 10 Jul 2003 09:35:16 +0800
!Lines: 51
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.3790.0
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
!Message-ID: <eD**************@tk2msftngp13.phx.gbl>
!Newsgroups: microsoft.public.dotnet.languages.csharp
!NNTP-Posting-Host: cm203-168-247-148.hkcable.com.hk 203.168.247.148
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:168110 !X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
!
!Thanks for reply, do you mean that your can't get the menu bar back even if !your added isn't loaded? or you just can't get it back during your addin's !session?
!
!Tony
!
!
!"Simon Bayling" <sf*@alysseum.com> wrote in message
!news:Xn************************@194.106.32.13...
!> Hmm, if anyone's interested I've had a look at a VS.Net plugin to do
!> this.
!>
!> Starting with an Add-In using the wizard, by enumerating through the
!> application command bars and I can get to the "FullScreen" button and
!> subscribe to its 'Click' Event.
!>
!> Inside that, I can find the MenuBar, which is a good start.
!>
!> Setting bar.Visible=false throws an "Unspecified error".
!> Setting bar.Enabled=false gets rid of it as required (I don't know what
!> side-effects it might have).
!>
!> But I can't get it back!
!>
!> Setting enabled to true does nothing. I've been toying with
!> CommandBars.Add, and it appears tantalisingly for a moment, then throws a !> "The parameter is incorrect" error...
!>
!> Any ideas?
!>
!> Code at http://www.alysseum.com/vsaddin.html
!>
!> Cheers,
!> Simon.
!>
!> Simon Bayling <sf*@alysseum.com> wrote in
!> news:Xn************************@194.106.32.13:
!>
!> > Perhaps time to explore VS.Net Plugins... ;)
!>
!> > "Tony Liu" <en*******@hotmail.com> wrote in
!> > news:O9**************@TK2MSFTNGP11.phx.gbl:
!> >
!> >> Thanks for replying, but I mean the menu bar in the Visual Studio.NET !> >> itself when I switch to full screen mode.
!> >> Anyways, thanks for replying.
!> >>
!> >> Tony
!>
!
!
!

Nov 13 '05 #7

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

Similar topics

2
by: Larry R Harrison Jr | last post by:
I have pull-down menus in javascript and I have the code for opening a link in a new window. But I want it to open a full-sized window. I can't figure out the syntax. What I have so far: ...
9
by: pow67 | last post by:
Is there a javascript statement which can be incorporated in a hyperlink which will open a new page that fills the screen while leaving the page with the link open? Thanks in advance. CW
1
by: Nick Weekes | last post by:
Hi all, Is there any javascript function/s that will tell me if the current browser window is in full screen mode or not? I don't want to resize the window, just size content based on full...
3
by: Pat Sheen | last post by:
Is there some setting in Access so when I get help it will display full screen and not part screen with my Access window. I've Googled and checked help but can't find anything. Thanks Pat
6
by: Nicky | last post by:
hi,all We are going to develop a program and when it is running, we need it full screen and also, user can not switch to other place before exit our program. I am thinking, we can make a window...
9
by: Jensen bredal | last post by:
Is there any way i can view my web page in full screen mode? F11 still hhas the internet explorer tool bar. Many thanks in advance JB
0
by: Franklin M. Gauer III | last post by:
Hi, We have an application running that uses FULL SCREEN ANCHORING in Windows Forms. The application runs fine on all of our desktops and some laptops. We are having problems with certain Dell...
9
by: EreN | last post by:
Hi! Im new in this group so i dont know if that topic has been opened before.. I want to ask that how can i make my console program open in full screen mode? Thanx...
7
by: MC felon | last post by:
i worked and compiled programs in code::blocks. These .exe's do not have full screen modes in them! how do i get them to work full screen?even properties of these exe's do not have full screen...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.