Link to home
Start Free TrialLog in
Avatar of ellerre
ellerre

asked on

C#, PocketPC and images...

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)
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

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
Avatar of ellerre
ellerre

ASKER

tnx!
ASKER CERTIFIED SOLUTION
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial