How to add label and button controls in .Net ToolTip

北城以北 提交于 2019-12-11 07:41:42

问题


HI,

I want to customize the existing win-form tool-tip control to host child controls like label and buttons with adjustable tool-tip window size and other common tool-tip properties.

Please also suggest any open-source custom tool-tip control which will provide the same kind of functionality.

Thanks

UPDATED: Please check following link, which contains exactly the same thing.

http://www.aicore.co.cc/WinUI/Classes/ToolTip


回答1:


You can't do this with the stock tooltip control in WinForms.

I'm not aware of any Open Source ones that support this, but you could write your own using a special borderless window.




回答2:


No this is not possible to add any control to Tooltip as it is not a container.

You have to make a user Control, that have label or buttons in it and handle mouse events to show it like tooltip.




回答3:


aicore.co.cc/WinUI/Classes/ToolTip It is not a ToolTip of Windows OS. It is a part of my GUI library, developed from scratch.



来源:https://stackoverflow.com/questions/5805091/how-to-add-label-and-button-controls-in-net-tooltip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!