Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C#, PocketPC and images...

Posted on 2003-11-02
3
Medium Priority
?
236 Views
Last Modified: 2010-04-16
I'm developing a C# program into the PocketPC 2003 enviroment.
I discovered (too late!) that a lot of features are not present into the .NET Compact Framework.
Ok, the question...
I have an image and I wish to use it like a button.
In the "standard" C# I can find the "pictureBox1_Click" event, but not using the compact framework.
Seems Microsoft do not loves anymore the "click", the "background color" etc..
How can I add it into my project?

(yes, I'm a beginner)
0
Comment
Question by:ellerre
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Fahad Mukhtar
ID: 9668530
yes you are right... the .NET compact framework is only a small(not too small) subset of .NEt Framework
But, "PictureBox.OnClick" Event is supported by the .NET Compact Framework.. you can put your code in that event

BackColor is Also supported by .NET Compact framework :)

so look for
"OnClick" Event instead of "Click"
and
"BackColor" Property instead of "Background Color"
in the properties window of the picturebox control
0
 

Author Comment

by:ellerre
ID: 9669610
tnx!
0
 
LVL 19

Accepted Solution

by:
Fahad Mukhtar earned 750 total points
ID: 9669725
if your question has been answered then please close this question by accepting anyone answer so that this question is available to other peoples as well...
if you have some more problems regarding this question then please ask :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
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…
Suggested Courses

927 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