"Georges Bessis" wrote:
> Hi again, Sergey,
>
> My original problem comes from the fact that my image size is fixed, and the
> client area is variable.
>
> I know there are methods in Windows programming to transform an image size,
> using some API. This could be the solution, I guess : upon form resize
> event, reload and adapt the size of my image dynamically. Basically it will
> be done once, since most of the time, my app is running full screen, so not
> a real performance problem.
>
> Once upon a time, I knew how to do that, but just can't remember now. Do you
> have any idea?
>
> Regards
>
> GB
>
>
>
> "Sergey Poberezovskiy" <SergeyPoberezovskiy@discussions.microsoft.com> a
> écrit dans le message de news:
> 7CDD6EBC-F432-49D5-9436-175B84B492BF@microsoft.com...
> > Have not tried myself, but here's an idea:
> >
> > You can place a PictureBox to fill out the form's client area and then add
> > all the controls you need inside that picture box..
> >
> > Let me know whether it solved your problem.
> >
> > "Georges Bessis" wrote:
> >
> >>
> >> Sorry, must be my english.
> >>
> >> In a MDI Form, I use the BackgroundImage property to set up a given BMP
> >> (or JPEG) image as background. My image file has a given size (width X
> >> height).
> >> What I get is :
> >> 1) or partial vue of the image if the client area is too small
> >> 2) or multiple vues of the image if the client area is bigger in size
> >> that the image.
> >>
> >> Instead, I want this image to be streched (expended) to fill my form's
> >> client area, and "autosize" to it. How can I do that?
> >>
> >> Is my question clear now?
> >>
> >>
> >>
> >> *** Sent via Developersdex
http://www.developersdex.com ***
> >>
>
>