Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox click event
Message
 
To
06/10/2005 16:26:50
General information
Forum:
ASP.NET
Category:
.NET Compact Framework
Miscellaneous
Thread ID:
01056878
Message ID:
01056965
Views:
35
Bonnie,
Glad to hear that I didn't loose you (I sometimes loose people when I get too excited when I explain things and my mind start going in 10 directions at the same time kinda like right now... <bg>)

I don't use the CF too much either and I just had to give up my PPC to the engineering department yesterday :( I am just trying to help the PPC guy with this issue.

The listview was a good idea but at first glance it doesn't seem like it implements Click either. It has the column header click but that doesn't do me any good. It has an item activated event but I fear that works very similar to how selectedindexchanged works.

Anywho I'll pass the info along to the PPC guy and he can play with it further.
If he can get it to work with the listview I will pass along stars to you :)

Thanks,
Einar

>Nope, you didn't lose me, you're making sense. Unfortunately, I've not used the Compact Framework, so maybe I should have just kept my mouth shut! <g>
>
>Does the CF implement a ListView? If so, does it implement it's click event?
>
>~~Bonnie
>
>
>
>>Bonnie,
>>Yes it does and yes I could use the SelectedIndexChanged event, but consider this example.
>>I have a listbox with several items. Each item defines an action. something like this (the following lines are items in the listobx:
>>Display form A
>>Display form B
>>Display form C
>>Display form D
>>so when I click on the "Display form B" item I want to open form B.
>>
>>So lets say I put the code in the SelectedIndexChanged handler. If I use the stylus and click on an item the correct form opens and things are good. BUT lets say I want to use my arrow keys to navigate the listbox. The SelectedIndexChanged will fire every time I change the selected index (very appropriate name <s>) so if I am on the first item and want to open the 3rd item I first have to open the 2nd item before I can move to the 3rd item (if I am using the arrow keys).
>>
>>So this is a problem and I move my code and trap the arrow keys in the KeyPressed event and things are great again until I notice that now my frikkin stylus clicks don't work anymore. <bg>
>>
>>On the PC it is very simple cuz the Click event is implemented.
>>
>>Hope my example makes sense, if it doesn't please let me know where I lost you.
>>
>>Einar
>>
>>>Does it implement the .SelectedIndexChanged event?
>>>
>>>~~Bonnie
>>>
>>>>The listbox click event is not implemented in the compact framework. (I find that extreemly odd but ohh well)
>>>>How can I "fake" a click event for the listbox?
>>>>
>>>>Thanks,
>>>>Einar
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform