寻找有关如何创建增强型工具提示的建议
目前,我正在使用工具提示在将鼠标悬停在 winform 上的某个区域上时显示信息。这很有效,我没有任何抱怨,但老板想要显示更复杂的数据,最好以网格而不是文本显示。 有没有一种方法可以让我在工具提示中嵌入用户控件或数据网格视图。
感谢
C#、.Net 2.0、windows.Forms
currently I am using a tool tip to display information when it hovers over a region on a winform. This works well and I don't have any complaints, but the boss want's to display more complex data, that would best be displayed in a grid rather than text.
Is there a way that perhaps I could embed a usercontrol or a datagridview in a tool tip.
thanks
C#, .Net 2.0, windows.Forms
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有这样的东西 所有者绘制的工具提示。您必须自己处理网格的绘制。尽管让您单击和滚动的工具提示听起来很奇怪,但您不会获得任何交互性。
如果你的老板愿意为此花钱,那么我很乐意推荐 DevExpress工具提示控件,因其可定制性。
There's such a thing as an owner-drawn tooltip. You'd have to handle the painting of the grid yourself. You wouldn't get any interactivity, although a tooltip that lets you click and scroll sounds odd anyway.
If your boss is willing to spend money on this then I can happily recommend the DevExpress tooltip control, for its customisability.
您可以编写一个带有数据网格的自定义控件(应该不会太难,只是一个带有阴影的黄色矩形)。它只需要在鼠标移开时淡出,并在鼠标停留在其上几秒钟后显示。
You can write a custom control (shouldn't be too hard, just a yellow rectangle with a drop shadow) with a data grid on it. It just needs to fade out when the mouse moves away and get displayed after the mouse rests on it for a couple of seconds.