Load bitmap on Pocket PC

Posted on 2006-03-30
Last Modified: 2008-01-09
I'm writing a Pocket PC application using Visual Studio 2005

I can add a bitmap to the project, but I don't know how to use code to access that bitmap

for example, I want that when I click the "button1", the "pictureBox1" will display the "Bitmap1.bmp" that was already in the project's resource

How I'm gonna do that?
Question by:huy302
    LVL 48

    Expert Comment

    m_image = MyResources.Icons.LoadBitmap("resTest");

    Accepted Solution

    m_image = MyResources.Icons.LoadBitmap("resTest"); works for sure but i want to add one more thing if the bitmap is embedded...

    there is a small tricky thing to know...

    if you put it in your work space in a folder like images then you have to write like this:
    m_image = MyResources.Icons.LoadBitmap("images\\resTest");

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    731 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

    16 Experts available now in Live!

    Get 1:1 Help Now