Results 1 to 7 of 7

Thread: All things to All Monitors

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600
    Hi.

    How can I make the controls and Forms in my VB app automatically resize themselves so that everything aligns properly, regardless of whether the app is running on a laptop, 14, 17, or 19-inch monitor.

    Many thanks.

  2. #2
    Guest
    well, you really don't have to worry about monitor sizes, worry about the resolutions, because if you're developing your program in an 800x600 enviorment and you have a 14" monitor, it'll be the same SCALE if on a 19" monitor, if the resolution is 800X600.

    Here's a little pusedo formula for you to understand this difference

    lower resolution on a bigger monitor, means Picture will look bigger...

    Same resolution on a smaller monitor, means picture and windows will be smaller...

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Well, let me rephrase my question

    WildGhost,

    Thanks for the info. So, I need to rephrase my question:

    How can I make the controls and Forms in my VB app automatically resize themselves so that everything aligns properly, regardless of the resolution of the computer it is running on.

    Thanks.

  4. #4
    Guest
    Ok, lol, Here's what I did when I had to face the same problem when making my program (that I still am making), I added DirectX support and what I did was make the program start MAXIMIZED and then make it fullscreen, and it'll still look like a normal program, but what you can do is, with dx you can change the resolution to 800x600x16 and that way they will be using your program in 800x600 no matter what, but there's another solution, I found it in one of the posts, I think it's on vb-world.net, Tip number 46 if I remeber correct, and her'es the url to it:

    http://www.vb-world.net/tips/tip46.html

    See if you can find your answer there...

    try this URL: http://www.vb-world.net/cgi-bin/sear...hereto=VBWORLD

    You can get a list of tips on resolutions

    [Edited by WildGhost on 04-04-2000 at 08:56 PM]

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Thanks.

    WildGhost,

    Thanks for the follow-up. I don't think that I can use the DirectX option, but the links you provided will be useful.

    I was wondering, do you (or anyone else) know if the "big boys" (professional developers) use the techniques in the links you provided to maintain the size consistency of forms and controls on different resolutions in their applications?

    Thanks again.

  6. #6
    Guest
    Well seriously, I don't know if they use those techniques or not.. but I can say one thing, that in games, (when I was making one) I had to make 2 sets of the same graphics, graphics made for 800x600 and graphics for 640x480, then since the game usually has nothing to do with outside resolution, they would have the choice of changing it to 640x480 or 800x600 and then we would apply the graphics according to the game resolution.... here's something else that I didn't thing about before, but here's what most of the people I've seen, do, they resize the controls (by adding or subtracting to their top/bottom/hieght/width to keep them aligned to the form, and also to RESIZE THEM, how you can get an example of that is to make a program using the VB APPLICATION WIZARD and just keep pressing next and next untill you finish, now look at the MDI Chile (document 1) and you'll find the code in FORM_RESIZE it'll resize the Text box control depending on the size of the form, so let's say that your program starts maximized, and you're on 800x600 and that's how you draw your controls, but someone else runs it on a higher resolution, then the program will start maximized, but the program window will be bigger and ofcourse the control will resize... But the resize code, you can find it, by doing what I told you...

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600
    WildGhost,

    Many thanks for the follow-up. I especially like the idea of using the VB Application Wizard to get the code to resize the controls. This will save me a lot of work.

    Thanks again and all the best.

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