Solved

Resize .JPG image to fit my panel

Posted on 2014-09-25
1
541 Views
Last Modified: 2014-09-26
Experts, I have a split container on my form and i set the background image of panel 2 to a graphic in my resources. Zoom, Stretch, Center, none of these seems to resize the graphic the way i want it. How can i take the size of my panel to and resize that graphic to those sizes and then set the background image property to the new graphic?
0
Comment
Question by:Basicfarmer
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 40345386
Put a PictureBox in the Panel, and assign it's Image property to you .JPG.

Set its Dock property to Fill.

It will automatically size to the size of the Panel.

If this is not what you expect, please tell us what you exactly mean by "resize the graphic the way i want it". This can have many meanings, and each might require a different solution.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question