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.
Related posts: