Results 1 to 16 of 16

Thread: Fullscreen

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Question 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!

  2. #2
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    Set your Form's Caption to "", the BorderStyle to "0 - None", ControlBox to "False", and WindowState to "Maximized"
    Your form is now full-screen

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Arrow

    -Okay, but is this the only way to do it? Possible with code? It does not fit in all resolutions in my program...

  4. #4
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    With code:
    VB Code:
    1. With Form1
    2.   .Caption = ""
    3.   .WindowState = 2
    4.   .BorderStyle = 0
    5.   .ControlBox = False
    6. End With

  5. #5
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    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.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Exclamation

    Hmm, yes, but for one reason, it still does not work... Is there no way you can type the resolution for going into fullscreen?!

  7. #7
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    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....

  8. #8
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    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.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Post

    -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?!

  10. #10
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    Are you using a laptop?

  11. #11
    Lively Member
    Join Date
    Jun 2002
    Posts
    81
    try defining the height and width of the form:
    form.height = screen.height
    form.width = screen.width
    hope ive helped.

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Red face

    Sorry, for not answering yesterday - I was tired, so I went to bed... Anyway, I had it work at last, so thanks guys!

  13. #13
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    What did you do?

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Talking

    -I followed your instructions!

    -Thanks!

  15. #15
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    I meant, can you tell us what code you actually used and what you actually achieved?

  16. #16

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    70

    Talking

    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
  •  



Click Here to Expand Forum to Full Width