Solved

Resize .JPG image to fit my panel

Posted on 2014-09-25
1
553 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

733 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