Solved

Resize .JPG image to fit my panel

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create a datatable in vb.net dynamically 1 22
vb.net cycle through results of a sql query and capture variables 3 18
Code enhancement 4 20
Groupbox Control ? 2 17
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
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.

839 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