Solved

Autosize PictureBox in VB.NET(Compact Framework)

Posted on 2009-03-31
1
886 Views
Last Modified: 2012-05-06
Hi All,

I am having a frustrating time dealing with bitmaps and picturebox in vb.net for a windows mobile 5 application.

I currently have several, different sized bitmaps that i want to view in a picturebox but it seems like the AutoSize is not available in CF!

is there any other way i can automatically resize the picturebox to fit the dimensions of a loaded bitmap?

any help/guidance/assistance would be much appreciated

thanks

Baz
0
Comment
Question by:baz86
[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 86

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 24029471
Does something like this work in CF?

        Dim bmp As New Bitmap("c:\someImage.bmp")
        PictureBox1.Size = bmp.Size
        PictureBox1.Image = bmp

0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…

726 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