• 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.
0
Wilder1626
Asked:
Wilder1626
  • 2
1 Solution
 
djon2003Commented:
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.
0
 
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.
Resize.zip
0
 
Wilder1626Author Commented:
Thanks you all. This is perfect form me.
0
 
Martin LissRetired ProgrammerCommented:
You're welcome.
0

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