Solved

Autosize PictureBox in VB.NET(Compact Framework)

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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