form doesn't auto size to fit different pc's 
Author Message
 form doesn't auto size to fit different pc's

i have installed this app on about 5 pc's, most require i set the screen
area to the highest pixel setting for the adapter to get the form to
properly size, i.e. display the entire form without truncating the right
side and without having to manually enlarge the vertical size so that a
scroll bar on the bottom is available on the screen. there is one pc with a
diamond adapter that i can't get the entire form to display no matter what
settings i use.
 i use this code to set the form size, thought it would universally set the
form size to fit whatever video adapter/monitor was being used but evidently
not, is there some other way to set the form size so that it will
universally fit all (most) screens?

Wid = Screen.Width
Hgt = Screen.Height
invForm.Move (Wid - Wid * 0.95) / 2, (Hgt - Hgt * 0.8) / 2, Wid * 0.95, Hgt
* 0.8



Tue, 20 Jan 2004 06:48:57 GMT  
 form doesn't auto size to fit different pc's


Quote:
>  i use this code to set the form size, thought it would universally set the
> form size to fit whatever video adapter/monitor was being used but evidently
> not, is there some other way to set the form size so that it will
> universally fit all (most) screens?

> Wid = Screen.Width
> Hgt = Screen.Height
> invForm.Move (Wid - Wid * 0.95) / 2, (Hgt - Hgt * 0.8) / 2, Wid * 0.95, Hgt
> * 0.8

Don't you hate it when that happens???

Here is a more simplified version with slightly less width:

invForm.Move Wid * .05, Hgt * .1, Wid * .9, Hgt * .8

HTH
LFS



Tue, 20 Jan 2004 10:20:38 GMT  
 form doesn't auto size to fit different pc's

Quote:

> invForm.Move Wid * .05, Hgt * .1, Wid * .9, Hgt * .8

Just asking... is there a non-personal-choice reason to use the .Move
method as opposed to setting the .Height and .Width props.

(I realize .Move lets you set .Top, .Left, .Height & .Width all at
once...I guess I'm really asking if there's a good programming reason
to avoid setting the props directly?)

--

|_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL  |
|_____________________________________________|_______________________|

Opinions expressed herein are my own and may not represent those of my employer.



Tue, 20 Jan 2004 23:23:06 GMT  
 form doesn't auto size to fit different pc's
so is there no universal solution????????????????????????


Quote:


> >  i use this code to set the form size, thought it would universally set
the
> > form size to fit whatever video adapter/monitor was being used but
evidently
> > not, is there some other way to set the form size so that it will
> > universally fit all (most) screens?

> > Wid = Screen.Width
> > Hgt = Screen.Height
> > invForm.Move (Wid - Wid * 0.95) / 2, (Hgt - Hgt * 0.8) / 2, Wid * 0.95,
Hgt
> > * 0.8

> Don't you hate it when that happens???

> Here is a more simplified version with slightly less width:

> invForm.Move Wid * .05, Hgt * .1, Wid * .9, Hgt * .8

> HTH
> LFS



Wed, 21 Jan 2004 03:19:30 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Form doesn't display properly on user's PC

2. PrintForm doesn't fit the whole form on one page

3. VB 4.0 Form/Controls Auto Resize to Fit the Screen Size

4. Listing PC's on different domains from 1 pc

5. Form_Load() doesn't execute, form doesn't load

6. Auto Fit in DBGrid's columns

7. Auto Fit in DBGrid's columns

8. window doesn't fit with a 17 inch monitor

9. form fitted (one size fits all)

10. MDI and child forms change relative sizes on different PC/Monitors

11. Userform size on different PCs/different resolutions- yikes!

12. auto size a shape to fit the text

 

 
Powered by phpBB® Forum Software