如何处理ListView的OnClick事件.Net Compact FrameWork 2.0 [英] How to handle a ListView's OnClick event .Net Compact FrameWork 2.0

查看:97
本文介绍了如何处理ListView的OnClick事件.Net Compact FrameWork 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为这个问题实现一个问题的解决方案。



我正在触发事件listView1_SelectedIndexChanged,但它无法正常工作多次按同一行。



最好的问候

I need to implement a solution for the issue which i ask in the subject.

I was firing the event listView1_SelectedIndexChanged, but it doesn't work properly when press the same row more than one time.

Best regards

推荐答案

我没有经验紧凑的FrameWork,但我相信如果您为Click事件或MouseDown事件定义一个EventHandler:每次点击Row时该事件都会被触发。



很难想象任何版本的.NET和任何.NET控件都不会提供该功能,但是,如果Compact FrameWork ListView没有,我将删除此响应。



我总是觉得有价值的事情,如果我对使用Control的各种鼠标相关事件的 order 有任何疑问,那就是为所有事件定义EventHandlers感兴趣,并将消息写入控制台,或到一个TextBox。
I have no experience with the Compact FrameWork, but I believe that if you define an EventHandler for the Click Event, or the MouseDown Event: that event will get fired every time you click on the Row.

It's hard to imagine any version of .NET, and any .NET Control, would not provide that functionality, but, if the Compact FrameWork ListView does not, I will delete this response.

One thing I always find valuable to do, if I have any doubt about in what order various mouse-related Events fire with while using a Control, is to define EventHandlers for all the Events of interest, and write a message to either the Console, or to a TextBox.


看看这里:如何处理ListView的OnClick事件? [ ^ ]


这篇关于如何处理ListView的OnClick事件.Net Compact FrameWork 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆