I have been playing Windows Mobile programming recently and use the listview control. Chen mm made a project prototype and used the listview control to list all functions.
But after I run it, I find that you must double-click to activate an option. I think it is not very consistent with the user's usage habits. Click the response button. I checked it in the Forum and found some colleagues encountered the same problem. Http://www.wmisv.com.cn/bbs/dispbbs.asp? Boolean id = 2 & id = 131 As longListview has an activation attribute, which is set to click or double-click attribute, and then an itemactivate event is added to the event. By default, a double-click response is used. The problem about the listview control: I don't know how to implement the item click event. The listview in the simplified package cannot find such an event. Currently, I use the keypress event, however, it recognizes the key event on the PPC keyboard, and there is no way to click the event on the touch screen. If you use the selectindexchange event, you can take care of the touch screen click event. However, when using the keyboard with one-hand operations, you only need to obtain the focus to stimulate the event. Solution to the second problem: Private void listview_selectedindexchanged (Object sender, eventargs e) listview. selectedindexcollection indexes = This. listview. selectedindices; foreach (INT index in indexes) string S = This. listview. items [Index]. subitems [1]. text ;}}// simpler method private void listview_selectedindexchanged (Object sender, eventargs e) {string S = This. listview. focuseditem. subitems [1]. text ;}