Re: Picture in image control gets cliped "Sometimes" does not stay flu
- From: "Jeff Johnson" <i.get@xxxxxxxxxxx>
- Date: Tue, 23 Sep 2008 17:31:39 -0400
"Ralph Malph" <ralph.malph@xxxxxxxxxxxxx> wrote in message
news:B207ADB6-ECC2-4A8A-A184-BAECFA088BAD@xxxxxxxxxxxxxxxx
The width of the form is set to be exactly the width of the picture in
the Image control.
The actual Width property of a form includes the borders, so the client area
(as described by ScaleHeight and ScaleWidth) will always be smaller than the
Width of the form unless the form is borderless. Did you actually mean what
you literally said?
For example, let's talk pixels and a graphic that's 500 x whatever. The
normal Windows theme has a 4-pixel border, so if your form is 500 pixels
wide then your client area is 492 pixels wide. You'd need to bump the
overall width to 508 in order to display an image that's 500 pixels wide.
.
- References:
- Picture in image control gets cliped "Sometimes" does not stay flu
- From: Ralph Malph
- Picture in image control gets cliped "Sometimes" does not stay flu
- Prev by Date: Re: VB 2005 versions
- Next by Date: Re: VB 2005 versions
- Previous by thread: Picture in image control gets cliped "Sometimes" does not stay flu
- Next by thread: Re: Picture in image control gets cliped "Sometimes" does not stay flu
- Index(es):
Relevant Pages
|