Javed Akram
Javed Akram

Reputation: 15344

Multiple Tooltips to same Control

I am using Windows Forms 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

Upvotes: 1

Views: 1053

Answers (2)

Stefan P.
Stefan P.

Reputation: 9519

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

Upvotes: 0

sheikhjabootie
sheikhjabootie

Reputation: 7376

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.

Upvotes: 3

Related Questions