Re: Form cut off on right and bottom sides
From: Joe \ (joe_at_bftsi0.UUCP)
Date: 02/20/04
- Next message: YYZ: "Re: ini Files vs Registry"
- Previous message: Ralph: "Re: Memory not freed when unloading forms"
- In reply to: Michael Vogt: "Form cut off on right and bottom sides"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Feb 2004 13:37:30 -0800
"Michael Vogt" <mraviator@yahoo.com> wrote in message <news:8f8c4938.0402201247.5275a918@posting.google.com>...
> I have a VB6 (SP5) app running on several PCs just fine. On two PCs,
> however, the right hand side and the bottom sides are cut off. The
> buttons, fonts, image boxes, etc. are not scaled down, just the right
> and bottom borders are trimmed off.
>
> I looked into Normal vs. Large Font setting, screen resolution, and
> other PC settings, no luck.
>
> This has appeared on both Win 2000 and XP systems. In the code I size
> my form using the following code to achieve a 600x600 form:
>
> Width = Screen.TwipsPerPixelX * 600
> Height = Screen.TwipsPerPixelY * 600
>
> Any suggestions why on 99.9% of computers this work, but on the
> occasional one it does not?
This will fail when the window border, title bar, and/or menu bar
might be larger than normal, causing the ScaleWidth or ScaleHeight
to be smaller than you expect. The solution is to adjust your
controls, etc., in the Form_Resize event.
-- Joe Foster <mailto:jlfoster%40znet.com> DC8s in Spaace: <http://www.xenu.net/> WARNING: I cannot be held responsible for the above They're coming to because my cats have apparently learned to type. take me away, ha ha!
- Next message: YYZ: "Re: ini Files vs Registry"
- Previous message: Ralph: "Re: Memory not freed when unloading forms"
- In reply to: Michael Vogt: "Form cut off on right and bottom sides"
- Messages sorted by: [ date ] [ thread ]