问题
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