Chris Rasmussen · Infrastructure Guy · Code Dabbler · Photographer · Traveller

Follow-up to VB.NET full-screen application post

Quite some time ago I posted an article called "How to make a full-screen Windows app using VB.NET". I’ve just added a comment to that post in response to a number of queries I’ve had re how to change the application back to normal mode/how to restore the window back to normal.

This post contains the code in that comment but in a new post so it’s easier to locate. The method below will change a full-screen window back to normal mode. I would recommend reading my original post for more information about creating full-screen applications using VB.NET.

Public Sub NormalMode()
‘ restore the window size back to default
Me.WindowState = FormWindowState.Normal
‘ change the form’s border style so the border is visible
‘ note that SizableToolWindow is just what I’ve used - there are other options available if you have code auto-completion enabled
Me.FormBorderStyle = FormBorderStyle.SizableToolWindow
‘ change the window so it’s not the on top
Me.TopMost = False
End Sub

Please post comments here or on the original post if you have any queries about the above method/code.

  • Share/Bookmark

Related posts:

  1. C# Full-screen application – Complete application example Yesterday I posted a quick update to an article I...
  2. VB.NET Full-screen application – Complete application example Since writing an article back in 2007 entitled How to...
  3. How to make a full-screen Windows app using VB.NET Recently I had to write a Windows application that required...
  4. Follow Up – Post-build Windows unattended installation script Back in June 2008 I posted an article about running...
  5. Using VB.NET to display Cacti & RTG graphs – Follow-up to Part 1 Recently I wrote a post to start a “thread” about...

banner ad

Leave a Reply

Powered by Wordpress | Designed by Elegant Themes