Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Autosize PictureBox in VB.NET(Compact Framework)

Posted on 2009-03-31
1
Medium Priority
?
897 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

604 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