Solved

Resize .JPG image to fit my panel

Posted on 2014-09-25
1
573 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

695 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