Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Load bitmap on Pocket PC

Posted on 2006-03-30
2
Medium Priority
?
292 Views
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?
0
Comment
Question by:huy302
2 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 16337777
m_image = MyResources.Icons.LoadBitmap("resTest");
0
 

Accepted Solution

by:
woigl earned 500 total points
ID: 16347166
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");
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

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