Load bitmap on Pocket PC

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?
huy302Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mikal613Commented:
m_image = MyResources.Icons.LoadBitmap("resTest");
0
woiglCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.