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?! :confused:
-Thanks in advance!
Printable View
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?! :confused:
-Thanks in advance!
Set your Form's Caption to "", the BorderStyle to "0 - None", ControlBox to "False", and WindowState to "Maximized"
Your form is now full-screen
-Okay, but is this the only way to do it? Possible with code? It does not fit in all resolutions in my program...:mad:
With code:VB Code:
With Form1 .Caption = "" .WindowState = 2 .BorderStyle = 0 .ControlBox = False End With
Huh?????Quote:
Originally posted by Mutuz
It does not fit in all resolutions in my program...
Hmm, yes, but for one reason, it still does not work...:( Is there no way you can type the resolution for going into fullscreen?!
Me.Windowstate=vbMaximized?
Not sure what you are trying to do here...
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.
-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?!
Are you using a laptop?
try defining the height and width of the form:
form.height = screen.height
form.width = screen.width
hope ive helped.
Sorry, for not answering yesterday - I was tired, so I went to bed...:) Anyway, I had it work at last, so thanks guys!:D
What did you do?
-I followed your instructions!;)
-Thanks!:)
I meant, can you tell us what code you actually used and what you actually achieved?
-Well, I followed this tip, and with some smaller problems, I had it work. Now, the fullscreen-function works!Quote:
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.