Button for smartphone?

J

JustMe

Hi ...

I desperately need to be able to mimic a button on
Smartphone devices. I've created an 'image' button by
inheriting from control and then overiding paint etc..

However, even though this control displays perfectly, I cannot use the
up/down keys to take the focus to this control.

Can someone put me on the right path?

Thanks in advance,
Tery
 
P

Peter Foot [MVP]

The Button is not supported on Smartphone because it goes against the
platform design guidelines, is there any way you could implement the
functionality using a softkey/menu or catching a specific keypress in the
form.
The improvements to the Control class to implement keyboard events weren't
added until .NETCF SP2, so if your device is an original SP2003 (not Second
Edition) you'll be running SP1 and this won't be possible directly.
You could use an IMessageFilter with OpenNETCF.Windows.Forms.ApplicationEx
to catch the key presses.

Peter
 
T

Tery Emilson

Hi Peter ...

Thanks for your reply.

I'm aware of the platform guidelines, but in order to preserve backward
compatibility with another version of my software (different platform),
I really need to be able to offer users the 'option' of showing buttons
on their SmartPhone.

I'm using the newest devices and the newest framework.

Even an 'uneditable' textbox that could capture a press of the action
hardware button would be great. 'Anything' that will allow a user to
position focus on the control, press the action button, and receive a
click event.

Any other ideas anyone?
Tery
 
R

Robert Levy [MS]

I believe there are a number of LinkButton controls available on the web for
CFv1 (it will be included in CFv2). I think that would be the most
appropriate replacement for Button controls.

--
Robert Levy
Program Manager
Mobile Devices Product Group
http://blogs.msdn.com/windowsmobile

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
J

JustMe

Robert ...

Thank you so much. I couldn't see the forest for the trees, and the
linkbutton option was 'exactly' what I needed.

Thanks again,
Tery
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top