Permalink
Browse files

Added keyboard shortcut (F11) for switching to full screen applicatio…

…n mode.

In full screen application mode menu is hidden to gain more vertical screen space.
  • Loading branch information...
1 parent d16354c commit 966fd19bc6b038fffb5f02c466c00d63b291ab41 @davidvidmar davidvidmar committed Jan 26, 2010
Showing with 3 additions and 0 deletions.
  1. +1 −0 mRemoteV1/Forms/frmMain.Designer.vb
  2. +2 −0 mRemoteV1/Tools/Tools.Misc.vb
@@ -311,6 +311,7 @@ Partial Class frmMain
'
Me.mMenViewFullscreen.Image = Global.mRemote.My.Resources.Resources.Fullscreen
Me.mMenViewFullscreen.Name = "mMenViewFullscreen"
+ Me.mMenViewFullscreen.ShortcutKeys = System.Windows.Forms.Keys.F11
Me.mMenViewFullscreen.Size = New System.Drawing.Size(228, 22)
Me.mMenViewFullscreen.Text = "Fullscreen (Kiosk Mode)"
'
@@ -332,6 +332,7 @@ Namespace Tools
Save()
targetForm.WindowState = FormWindowState.Maximized
targetForm.FormBorderStyle = FormBorderStyle.None
+ targetForm.MainMenuStrip.Visible = False
SetWinFullScreen(targetForm.Handle)
End If
Catch ex As Exception
@@ -349,6 +350,7 @@ Namespace Tools
Try
targetForm.WindowState = winState
targetForm.FormBorderStyle = brdStyle
+ targetForm.MainMenuStrip.Visible = True
targetForm.Bounds = bounds
FullscreenActive = False
Catch ex As Exception

0 comments on commit 966fd19

Please sign in to comment.