Solved

Autosize PictureBox in VB.NET(Compact Framework)

Posted on 2009-03-31
1
888 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 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