Computing.Net > Forums > Programming > Getting Full Screen (VB6)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Getting Full Screen (VB6)

Reply to Message Icon

Name: FROsTByTE
Date: December 10, 2002 at 09:47:22 Pacific
OS: Lunix/XPPro/ME
CPU/Ram: P4-3.0x2(6GBRam)
Comment:

Yo ! ...can someone please temme ...how to put get my program run full screen in Vb6....like game




Sponsored Link
Ads by Google

Response Number 1
Name: David I
Date: December 10, 2002 at 11:10:45 Pacific
Reply:

Just set the form's windowstate property to 2 (maximized).


0

Response Number 2
Name: Me
Date: December 10, 2002 at 12:53:27 Pacific
Reply:

Yo! i can.

Set the windows property to no border (0) and set the windowsstate (as david I told) to 2 (maximized) then you have your game style app

Good Luck!


0

Response Number 3
Name: DaBrothaGrim
Date: December 10, 2002 at 18:34:31 Pacific
Reply:

i do it like this... add the Microsoft Sysinfo control 6.0 component to your project then place it on your form
then add this code to your form load event.
Form1.Width = SysInfo1.WorkAreaWidth
Form1.Left = SysInfo1.WorkAreaLeft
Form1.Height = SysInfo1.WorkAreaHeight
that will fill the screen at any resolution then if you change resolutions while the app is still running just add the code to the display changed event or better yet write a sub and just call it at load up and in the display changed event... easy as cake don't you think like this:

Private Sub SysInfo1_DisplayChanged()
MyDisplay
End Sub

Private Sub Form_Load()
MyDisplay
End Sub

Public Sub MyDisplay()
Form1.Height = SysInfo1.WorkAreaHeight
Form1.Width = SysInfo1.WorkAreaWidth
Form1.Top = SysInfo1.WorkAreaTop
Form1.Left = SysInfo1.WorkAreaLeft
End Sub

by the way this is code and it will work all the time
regardless of current resolution or if you change resolutions while your application is running (i think i just repeated myself):)
have fun!


0

Response Number 4
Name: FROsTByTE
Date: December 10, 2002 at 20:47:55 Pacific
Reply:

Thanks :)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Getting Full Screen (VB6)

Browser - Full screen/disabled Back Btn www.computing.net/answers/programming/browser-full-screendisabled-back-btn/107.html

default bat app window full screen? www.computing.net/answers/programming/default-bat-app-window-full-screen/9704.html

Windowed or Full Screen detection? www.computing.net/answers/programming/windowed-or-full-screen-detection/6995.html