How to add label and button controls in .Net ToolT

2019-07-30 08:33发布

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

3条回答
戒情不戒烟
2楼-- · 2019-07-30 08:53

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.

查看更多
Bombasti
3楼-- · 2019-07-30 08:54

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.

查看更多
劫难
4楼-- · 2019-07-30 09:04

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.

查看更多
登录 后发表回答