I have an image for the background of the form I'm working on, but I had to increase the size of the form. Is it possible to have it scale the image instead of tiling? I could stretch it in photoshop but I was wondering if this was possible.

Recommended Answers

All 3 Replies

Simplest way is to set the image properties to stretch it will automatically scale it to fit the form completely.

this.BackgroundImageLayout = ImageLayout.Stretch;

You're very welcome. :D

thx for your help i found it soon after posting and felt fairly dumb lol

Not a problem, that's usually the case with the simpler stuff like that. We overlook and over analyze. lol

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.