• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

VB6 form display

Hello all

I was wondering if it is possible to auto size the Form display depending of my screen display.

Ex: If i open my form on a 1280 X 800 screen resolution, then the form will open full screen and everything inside the form will also re size.

If i open my form on a 800 X 600, again, the form will open full screen and everything inside the form will also re size.

Whats inside by form is Command button, label, textbox ect..

Is that possible?

Thanks again for your help.
  • 2
1 Solution
Using Screen.Width and Screen.Height gives you the size of the screen.

From that, you can set you form size to these values and resize all your controls and reposition them.
Martin LissRetired ProgrammerCommented:
I've attached a sample project. To make it open full screen just change the WindowState property. BTW the code in my project isn't perfect and it's possible that you might have problems with certain controls. Let me know if you do run into problems. BTW I think that there are commercial dlls(?) that will do it better.
Wilder1626Author Commented:
Thanks you all. This is perfect form me.
Martin LissRetired ProgrammerCommented:
You're welcome.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now