Solved

How to dynamically change the image size in PictureBox control in VC#?

Posted on 2011-03-22
2
279 Views
Last Modified: 2012-05-11
Would like to resize the control from 10,10 to 20,20. Can it be done with code?
0
Comment
Question by:jl66
2 Comments
 
LVL 16

Accepted Solution

by:
Imran Javed Zia earned 500 total points
ID: 35193627
Hi,
If your Control Name is ctrl you can use any of following,  

ctrl.Size = new Size(20, 20);

or
ctrl.Width = 20;
ctrl.Height = 20;

Thanks
0
 

Author Closing Comment

by:jl66
ID: 35201806
Thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Diagnostics with Net and Net.Sockets 2 27
Simple Injector with Web Service 4 40
SSRS subreport with parameter 3 32
VB.NET 2008 Winforms Signing 13 17
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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