Detecting touchscreen clicks on ListView

S

Scott Gifford

I'm working on getting a Windows Mobile 5.0 Smartphone application I
wrote running on a Windows Mobile 5.0 PocketPC device. I'm using .NET
2.0 and Visual Studio 2008.

I'm using a ListView control to display a menu of available activities
to the user. On the SmartPhone the user would choose an item by
navigating to it with their directional pad (or equivalent) and
pressing the select button in the middle of the pad (or equivalent).

On a device with a touchscreen, I would like items to activate when
they are tapped. It seems confusing to me (and has been confusing to
our early users) that you have to double-click on a menu item to
activate it, or click on it and press Enter.

I cannot find a way to tell when an item is clicked.
SelectedIndexChanged will be fired, but it will also be fired when the
user moves to the item with the directional pad, whether or not they
activate it with the select button.

Does anybody know of a way to do this?

Thanks!

----Scott.
 
S

Scott Gifford

[...]
On a device with a touchscreen, I would like items to activate when
they are tapped.

I figured it out: I simply had to set the ListView's Activation
property to OneClick. I was expecting this to fire a different kind
of Event, and so I missed this property altogether.

----Scott.
 

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