Problem ListView1_Click under .Net Compact Framework

  • Thread starter Thread starter A_PK
  • Start date Start date
A

A_PK

I tried to use the Click event under Listiview under .net compact framework
environment.

but to my suprice, i found Click event is not working.....is it correct ?
pls guide me how to use it....

i try to pop up a message pop when the user click on the Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click the
listview, there are no message box poping up. so the Click event seem to be
not working at all...? pls guide me

Regards
 
THis has been asked and answered many times. Search the archives for
details on a workaround, but the short answer is that the Click event isn't
supported on the ListView.

-Chris
 
I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so sorry
that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be shown up,
when I close FormB, FormA will be showing up again, and remain Item1 as
pre-selected item. When I tap the Item1 again....it is supposed to shown up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it should
unhighlighted the pre-selected item, but when I use selectedindexchanged,
and I click on the whitspot in the listview, it will fire the
pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA is hide,
but the inputpanel and the mainmenu of FormA will still remain there when
the FormB is shown. Only I click on FormB, then inputpanel and mainmenu of
FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA
 
If you searched the archives you found that another approach is to use the
ItemActivate event after changing the Activation property.

Cheers
Daniel
 
Yes, I have tried ItemActivae, but it requires users to tap twice in order
to fire the ItemActivate event....
so I am wondering any work around ?
 
ItemActivate event after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


AAA said:
Yes, I have tried ItemActivae, but it requires users to tap twice in order
to fire the ItemActivate event....
so I am wondering any work around ?

Daniel Moth said:
If you searched the archives you found that another approach is to use
the ItemActivate event after changing the Activation property.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


AAA said:
I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so
sorry that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not
trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be shown
up,
when I close FormB, FormA will be showing up again, and remain Item1 as
pre-selected item. When I tap the Item1 again....it is supposed to shown
up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it should
unhighlighted the pre-selected item, but when I use
selectedindexchanged, and I click on the whitspot in the listview, it
will fire the pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA is
hide, but the inputpanel and the mainmenu of FormA will still remain
there when the FormB is shown. Only I click on FormB, then inputpanel
and mainmenu of FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA



"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
wrote in message Here's a link for searching the .NET CF newsgroup archives via Google:

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
THis has been asked and answered many times. Search the archives for
details on a workaround, but the short answer is that the Click event
isn't supported on the ListView.

-Chris


I tried to use the Click event under Listiview under .net compact
framework environment.

but to my suprice, i found Click event is not working.....is it
correct
? pls guide me how to use it....

i try to pop up a message pop when the user click on the
Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click
the
listview, there are no message box poping up. so the Click event seem
to
be not working at all...? pls guide me

Regards
 
yes...i knew...
but I have to tap twice in order to fire that event.....

i have simply create a listview and trigger by ItemActivave event.....
i have to tap twice in the listview, then only the will fire event under
ItemActivate....

since most application only tap one, so i want my user to be user friendly
and tap one only...

Daniel Moth said:
Cheers
Daniel
--
http://www.danielmoth.com/Blog/


AAA said:
Yes, I have tried ItemActivae, but it requires users to tap twice in
order to fire the ItemActivate event....
so I am wondering any work around ?

Daniel Moth said:
If you searched the archives you found that another approach is to use
the ItemActivate event after changing the Activation property.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so
sorry that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not
trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be shown
up,
when I close FormB, FormA will be showing up again, and remain Item1 as
pre-selected item. When I tap the Item1 again....it is supposed to
shown up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it should
unhighlighted the pre-selected item, but when I use
selectedindexchanged, and I click on the whitspot in the listview, it
will fire the pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA is
hide, but the inputpanel and the mainmenu of FormA will still remain
there when the FormB is shown. Only I click on FormB, then inputpanel
and mainmenu of FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA



"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
wrote in message Here's a link for searching the .NET CF newsgroup archives via Google:

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
THis has been asked and answered many times. Search the archives for
details on a workaround, but the short answer is that the Click event
isn't supported on the ListView.

-Chris


I tried to use the Click event under Listiview under .net compact
framework environment.

but to my suprice, i found Click event is not working.....is it
correct
? pls guide me how to use it....

i try to pop up a message pop when the user click on the
Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click
the
listview, there are no message box poping up. so the Click event
seem to
be not working at all...? pls guide me

Regards
 
Create an IMessageFilter implementation and catch the click there.

-Chris

AAA said:
yes...i knew...
but I have to tap twice in order to fire that event.....

i have simply create a listview and trigger by ItemActivave event.....
i have to tap twice in the listview, then only the will fire event under
ItemActivate....

since most application only tap one, so i want my user to be user friendly
and tap one only...

Daniel Moth said:
ItemActivate event after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


AAA said:
Yes, I have tried ItemActivae, but it requires users to tap twice in
order to fire the ItemActivate event....
so I am wondering any work around ?

If you searched the archives you found that another approach is to use
the ItemActivate event after changing the Activation property.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so
sorry that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not
trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be
shown up,
when I close FormB, FormA will be showing up again, and remain Item1
as
pre-selected item. When I tap the Item1 again....it is supposed to
shown up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it
should unhighlighted the pre-selected item, but when I use
selectedindexchanged, and I click on the whitspot in the listview, it
will fire the pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA is
hide, but the inputpanel and the mainmenu of FormA will still remain
there when the FormB is shown. Only I click on FormB, then inputpanel
and mainmenu of FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA



"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
wrote in message Here's a link for searching the .NET CF newsgroup archives via
Google:

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
THis has been asked and answered many times. Search the archives
for
details on a workaround, but the short answer is that the Click
event
isn't supported on the ListView.

-Chris


I tried to use the Click event under Listiview under .net compact
framework environment.

but to my suprice, i found Click event is not working.....is it
correct
? pls guide me how to use it....

i try to pop up a message pop when the user click on the
Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click
the
listview, there are no message box poping up. so the Click event
seem to
be not working at all...? pls guide me

Regards
 
I found one solution from some website posted by Alex Feinman...

he said that one way in to set the Activation type of listview to One
Click....
anyone know how could I set the Activation type of listview to One click...?

Chris...I am new to IMessageFilter....
i will give it a go and see how...

if possible, mind sharing some good referece site to pick up the
IMessageFilter skill

regards
AAA

Create an IMessageFilter implementation and catch the click there.

-Chris

AAA said:
yes...i knew...
but I have to tap twice in order to fire that event.....

i have simply create a listview and trigger by ItemActivave event.....
i have to tap twice in the listview, then only the will fire event under
ItemActivate....

since most application only tap one, so i want my user to be user
friendly and tap one only...

Daniel Moth said:
ItemActivate event after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


Yes, I have tried ItemActivae, but it requires users to tap twice in
order to fire the ItemActivate event....
so I am wondering any work around ?

If you searched the archives you found that another approach is to use
the ItemActivate event after changing the Activation property.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so
sorry that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not
trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be
shown up,
when I close FormB, FormA will be showing up again, and remain Item1
as
pre-selected item. When I tap the Item1 again....it is supposed to
shown up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it
should unhighlighted the pre-selected item, but when I use
selectedindexchanged, and I click on the whitspot in the listview, it
will fire the pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA
is hide, but the inputpanel and the mainmenu of FormA will still
remain there when the FormB is shown. Only I click on FormB, then
inputpanel and mainmenu of FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA



"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
wrote in message Here's a link for searching the .NET CF newsgroup archives via
Google:

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
THis has been asked and answered many times. Search the archives
for
details on a workaround, but the short answer is that the Click
event
isn't supported on the ListView.

-Chris


I tried to use the Click event under Listiview under .net compact
framework environment.

but to my suprice, i found Click event is not working.....is it
correct
? pls guide me how to use it....

i try to pop up a message pop when the user click on the
Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click
the
listview, there are no message box poping up. so the Click event
seem to
be not working at all...? pls guide me

Regards
 
Hi...thank Alex, I already make a listview actionvatioin type to
OneClick...it is working...


Create an IMessageFilter implementation and catch the click there.

-Chris

AAA said:
yes...i knew...
but I have to tap twice in order to fire that event.....

i have simply create a listview and trigger by ItemActivave event.....
i have to tap twice in the listview, then only the will fire event under
ItemActivate....

since most application only tap one, so i want my user to be user
friendly and tap one only...

Daniel Moth said:
ItemActivate event after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


Yes, I have tried ItemActivae, but it requires users to tap twice in
order to fire the ItemActivate event....
so I am wondering any work around ?

If you searched the archives you found that another approach is to use
the ItemActivate event after changing the Activation property.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so
sorry that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not
trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be
shown up,
when I close FormB, FormA will be showing up again, and remain Item1
as
pre-selected item. When I tap the Item1 again....it is supposed to
shown up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it
should unhighlighted the pre-selected item, but when I use
selectedindexchanged, and I click on the whitspot in the listview, it
will fire the pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA
is hide, but the inputpanel and the mainmenu of FormA will still
remain there when the FormB is shown. Only I click on FormB, then
inputpanel and mainmenu of FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA



"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
wrote in message Here's a link for searching the .NET CF newsgroup archives via
Google:

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
THis has been asked and answered many times. Search the archives
for
details on a workaround, but the short answer is that the Click
event
isn't supported on the ListView.

-Chris


I tried to use the Click event under Listiview under .net compact
framework environment.

but to my suprice, i found Click event is not working.....is it
correct
? pls guide me how to use it....

i try to pop up a message pop when the user click on the
Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click
the
listview, there are no message box poping up. so the Click event
seem to
be not working at all...? pls guide me

Regards
 
Reread my sentence. It has two parts:
1. Catch ItemActivate event
2. after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


AAA said:
yes...i knew...
but I have to tap twice in order to fire that event.....

i have simply create a listview and trigger by ItemActivave event.....
i have to tap twice in the listview, then only the will fire event under
ItemActivate....

since most application only tap one, so i want my user to be user friendly
and tap one only...

Daniel Moth said:
ItemActivate event after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


AAA said:
Yes, I have tried ItemActivae, but it requires users to tap twice in
order to fire the ItemActivate event....
so I am wondering any work around ?

If you searched the archives you found that another approach is to use
the ItemActivate event after changing the Activation property.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so
sorry that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not
trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be
shown up,
when I close FormB, FormA will be showing up again, and remain Item1
as
pre-selected item. When I tap the Item1 again....it is supposed to
shown up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it
should unhighlighted the pre-selected item, but when I use
selectedindexchanged, and I click on the whitspot in the listview, it
will fire the pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA is
hide, but the inputpanel and the mainmenu of FormA will still remain
there when the FormB is shown. Only I click on FormB, then inputpanel
and mainmenu of FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA



"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
wrote in message Here's a link for searching the .NET CF newsgroup archives via
Google:

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
THis has been asked and answered many times. Search the archives
for
details on a workaround, but the short answer is that the Click
event
isn't supported on the ListView.

-Chris


I tried to use the Click event under Listiview under .net compact
framework environment.

but to my suprice, i found Click event is not working.....is it
correct
? pls guide me how to use it....

i try to pop up a message pop when the user click on the
Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click
the
listview, there are no message box poping up. so the Click event
seem to
be not working at all...? pls guide me

Regards
 
oic...heheh...I got it...thank Daniel....

Daniel Moth said:
Reread my sentence. It has two parts:
1. Catch ItemActivate event
2. after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


AAA said:
yes...i knew...
but I have to tap twice in order to fire that event.....

i have simply create a listview and trigger by ItemActivave event.....
i have to tap twice in the listview, then only the will fire event under
ItemActivate....

since most application only tap one, so i want my user to be user
friendly and tap one only...

Daniel Moth said:
ItemActivate event after changing the Activation property

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


Yes, I have tried ItemActivae, but it requires users to tap twice in
order to fire the ItemActivate event....
so I am wondering any work around ?

If you searched the archives you found that another approach is to use
the ItemActivate event after changing the Activation property.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


I have done some research on the newsgroup....some suggest
selectedindexchanged which I am using now and I face problem. I am so
sorry that maybe I did
not explain my problem previous mail...

the listview click event is not supported. I am using
selectedindexchanged...but i
face some problem.

under selectedindexchanged....

Problem 1 - when I click on the same item second time, it will not
trigger
the particular event.
e.g when I select the Item1 on FormA to show FormB, FormB will be
shown up,
when I close FormB, FormA will be showing up again, and remain Item1
as
pre-selected item. When I tap the Item1 again....it is supposed to
shown up
FormB, but it did not show up, but remain there....nothing happen

Problem2 - when I click on the whitspot area in the Listview, it
should unhighlighted the pre-selected item, but when I use
selectedindexchanged, and I click on the whitspot in the listview, it
will fire the pre-selecteditem event.

Problem3 - when I select Item1 under FormA, to show FormB, my FormA
is hide, but the inputpanel and the mainmenu of FormA will still
remain there when the FormB is shown. Only I click on FormB, then
inputpanel and mainmenu of FormA will be disappeared.


pls guide me how to solved the above three problem

regards
AAA



"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
wrote in message Here's a link for searching the .NET CF newsgroup archives via
Google:

http://groups-beta.google.com/group...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Paul T.

"<ctacke/>" <ctacke_AT_OpenNETCF_com> wrote in message
THis has been asked and answered many times. Search the archives
for
details on a workaround, but the short answer is that the Click
event
isn't supported on the ListView.

-Chris


I tried to use the Click event under Listiview under .net compact
framework environment.

but to my suprice, i found Click event is not working.....is it
correct
? pls guide me how to use it....

i try to pop up a message pop when the user click on the
Listiview......
under .net framework, i have no problem poping a message box
but under .net compact framework, no matter how many times i click
the
listview, there are no message box poping up. so the Click event
seem to
be not working at all...? pls guide me

Regards
 
Back
Top