开发者

Multiple Tooltips to same Control

开发者 https://www.devze.com 2023-01-25 02:35 出处:网络
I am using Windows Form开发者_如何学Pythons Application in C# I have a label having Date as Text 16-12-2010

I am using Windows Form开发者_如何学Pythons Application in C#

I have a label having Date as Text 16-12-2010

Now I want to display different Tooltip when mouse is over Date/Month/Year

e.g. When Cursor on Date : Then Today's Date as Tooltip

UPDATED:

One Source of Example is When we vote to Close any Question in StackOverflow.com


Use multiple labels - one for each part.

Otherwise you're going to need to know which characters in the Label the mouse is over - different Font's render differently. That's a can-o-worms if ever there was one.


You can beak the label in 3 labels and set the tool tips as you like.

0

精彩评论

暂无评论...
验证码 换一张
取 消