C# PropertyGrid DoubleClick 事件捕获
对于我正在处理的项目,PropertyGrid 中有一些长行的值。我希望用户能够双击网格中的值,这将打开我的自定义 UI 窗口。我已经对其进行了设置,以便在单击 [...] 按钮时 UI 可以正常工作,但我还需要它在双击任何网格项时直接显示。
附带说明一下,循环遍历 PropertyGrid 的控件并向它们分配 Click/Mouse 事件可以在单击属性 name 时发生这种情况,但在属性 name 时仍然不会捕获单击>值被点击。有什么建议吗?
For a project I am working on, I have some values in a PropertyGrid that are many lines long. I want the user to be able to double-click a value in the grid, which will bring up my custom UI window. I already have it set up so that the UI works when the [...] button is clicked, but I also need it to show up directly if any grid item is double-clicked.
On a side note, looping through the controls of the PropertyGrid and assigning Click/Mouse events to them allows this to happen when the property name is clicked, but still does not capture the click when the property value is clicked. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论