Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox click event
Message
 
To
06/10/2005 16:02:18
General information
Forum:
ASP.NET
Category:
.NET Compact Framework
Miscellaneous
Thread ID:
01056878
Message ID:
01056940
Views:
25
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
Next
Reply
Map
View

Click here to load this message in the networking platform