ListView & click Event

N

Norbert

Hi

Working on VS2005Beta2 .netCF

I'm trying to get the "Click" Event from an Listview
in the documenation(MSDN) it looks like it is supported in the CF
but the VS-designer doesn't show support.
But the Event is available in a Listview object.

I tried to register it manually but i also doesn't work

It looks like a .netCF problem because in the normal framework
I can register for the click event with the Designer!

Norbert
 
D

Daniel Moth

in the documenation(MSDN) it looks like it is supported in the CF
Can you post a link to where it reads that it is applicable to Compact
Framework?


Why do you think it is supported?

The IDE shows it is not available (properties window, intellisense - and
comboboxes in VB). Ignoring the big clues if you manually add an event
handler, the task list informs you it is not supported. If you run the
application, you get no effect.

Use the ItemActivate/Activation or SelectedIndexChanged or describe your end
goal and maybe someone can help with alternatives.

Cheers
Daniel
 
M

Myron Marston

One alternative if it is in fact not supported in NETCF 2 (which I
haven't worked with at all yet...) is to use OpenNETCF's ApplicationEx
class and IMessageFilter interface to listen for the appropriate
windows message. I added a DoubleClick event to my listview yesterday
using this method and it works beautifully.
 
N

Norbert

Hi

Thanks for the tipp, but this will not work in my application
(or only if i Hardcode everything)

The reason is, I have several Tabpages
and the content of the tabpages is a dynamical loaded UserControl
So in the application i actually don't know how the UC look like and
because of this
i cannot check for fixed coordinates :-(

Norbert
 
D

Daniel Moth

Why are you looking at v1 documentation when working with v2? In any case,
if it does not explicitly state it is supported by the netcf then you can
make no assumptions (and that is certainly the case with events in v1
documentation). Then you fall back to the compiler which in v2 as I detailed
before clearly guides you down the right path.

For more on intellisense with v1,v2 see this:
http://www.danielmoth.com/Blog/2005/04/intellisense-for-cf-v20.html

Cheers
Daniel
 

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