|
-
Jun 13th, 2002, 03:29 PM
#1
Thread Starter
Lively Member
Fullscreen
Hey people!
-This may be a quite simple one, but how do I make my form go into Fullscreen-mode when the user starts the program?!
-Thanks in advance!
-
Jun 13th, 2002, 03:32 PM
#2
Hyperactive Member
Set your Form's Caption to "", the BorderStyle to "0 - None", ControlBox to "False", and WindowState to "Maximized"
Your form is now full-screen
-
Jun 13th, 2002, 03:40 PM
#3
Thread Starter
Lively Member
-Okay, but is this the only way to do it? Possible with code? It does not fit in all resolutions in my program...
-
Jun 13th, 2002, 03:42 PM
#4
Hyperactive Member
With code:
VB Code:
With Form1
.Caption = ""
.WindowState = 2
.BorderStyle = 0
.ControlBox = False
End With
-
Jun 13th, 2002, 03:46 PM
#5
Hyperactive Member
Originally posted by Mutuz
It does not fit in all resolutions in my program...
Huh?????
Last edited by DovyWeiss; Jun 13th, 2002 at 03:50 PM.
-
Jun 13th, 2002, 03:47 PM
#6
Thread Starter
Lively Member
Hmm, yes, but for one reason, it still does not work... Is there no way you can type the resolution for going into fullscreen?!
-
Jun 13th, 2002, 03:49 PM
#7
PowerPoster
Well
Me.Windowstate=vbMaximized?
Not sure what you are trying to do here...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Jun 13th, 2002, 03:52 PM
#8
Hyperactive Member
Sure. It is best to set the resolution using the API, then use my code to go full screen. Then, when your app exits, set the resolution back.
That's dangerous, though, if you run on somewhere where it doesn't have a good enough video card to do the new resolution.
-
Jun 13th, 2002, 03:55 PM
#9
Thread Starter
Lively Member
-Okay, what I am trying to do here, is to make the program goto fullscreen-mode no matter which resolution you have! Get it? And for some reason it does not work in 640x480... Why?!
-
Jun 13th, 2002, 04:05 PM
#10
Hyperactive Member
-
Jun 13th, 2002, 04:51 PM
#11
Lively Member
try defining the height and width of the form:
form.height = screen.height
form.width = screen.width
hope ive helped.
-
Jun 14th, 2002, 02:45 AM
#12
Thread Starter
Lively Member
-
Jun 14th, 2002, 12:06 PM
#13
Hyperactive Member
-
Jun 15th, 2002, 06:34 AM
#14
Thread Starter
Lively Member
-
Jun 18th, 2002, 04:35 PM
#15
Hyperactive Member
I meant, can you tell us what code you actually used and what you actually achieved?
-
Jun 19th, 2002, 05:04 AM
#16
Thread Starter
Lively Member
Sure. It is best to set the resolution using the API, then use my code to go full screen. Then, when your app exits, set the resolution back.
-Well, I followed this tip, and with some smaller problems, I had it work. Now, the fullscreen-function works!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|