Solved

Autosize PictureBox in VB.NET(Compact Framework)

Posted on 2009-03-31
1
870 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
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now