Post: Vb.Net | TUT] easy make Full Screen Form with small code [TUT]
05-10-2011, 12:06 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Originally posted by kingdeath360 View Post
Hello HF

how to make Full Screen Form !

this work in My pc dont know if work on every pc


make button For Full Screen

    
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.WindowState = FormWindowState.Maximized


and in your form event Key press add this code!
If Key ESC Press your from will exit from Full screen
    
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
If Asc(e.KeyChar) = Keys.Escape Then
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable
Me.WindowState = FormWindowState.Normal
End If
End Sub



have fun and pls tell me if work on your pc ^:^


source You must login or register to view this content.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo