Visual Studio 2003 中 DataGrid 的鼠标双击事件在哪里?
我在 C# 智能设备应用程序中的 Visual Studio 2003 中没有看到 DataGrid 的鼠标双击事件。
这个事件存在吗?如果是这样,我该如何使用它?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我在 C# 智能设备应用程序中的 Visual Studio 2003 中没有看到 DataGrid 的鼠标双击事件。
这个事件存在吗?如果是这样,我该如何使用它?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
如果您指的是< code>MouseDoubleClick 事件,您在 Visual Studio 2003 中看不到它的原因是它是在 2.0 版本中添加到 .NET Framework 中的。 VS 2003 使用 .NET Framework 1.1 版。
当针对此版本的 .NET Framework 时,您需要使用
DoubleClick
事件 代替。此事件不会传递MouseEventArgs
就像MouseDoubleClick
事件一样,所以如果您需要知道指针的当前位置,您将使用Control.MousePosition
属性。If you're referring to the
MouseDoubleClick
event, the reason you aren't seeing it in Visual Studio 2003 is because it was added to the .NET Framework in version 2.0. VS 2003 uses version 1.1 of the .NET Framework.When targeting this version of the .NET Framework, you'll need to use the
DoubleClick
event instead. This event does not passMouseEventArgs
like theMouseDoubleClick
event, so if you need to know the current location of the pointer, you'll have use theControl.MousePosition
property.DataGrid
继承自Control
因此它是否有DoubleClick
事件。DataGrid
inherits fromControl
and thus does it have aDoubleClick
event.