Visual Studio 2003 中 DataGrid 的鼠标双击事件在哪里?

发布于 2024-10-08 22:13:30 字数 97 浏览 0 评论 0 原文

我在 C# 智能设备应用程序中的 Visual Studio 2003 中没有看到 DataGrid 的鼠标双击事件。

这个事件存在吗?如果是这样,我该如何使用它?

I don't see a mouse double click event for the DataGrid in Visual Studio 2003 in C# smart device application.

Does this event exist? And if so, how can I use it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

仅此而已 2024-10-15 22:13:30

如果您指的是< 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 pass MouseEventArgs like the MouseDoubleClick event, so if you need to know the current location of the pointer, you'll have use the Control.MousePosition property.

青春如此纠结 2024-10-15 22:13:30

DataGrid 继承自 Control 因此它是否有 DoubleClick 事件。

DataGrid inherits from Control and thus does it have a DoubleClick event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文