True but without being able to expose the magical ToolTip event my control
will never cause a tooltip to be displayed.
I think the custom property is the way I'm going to have to go. I'll try
naming it the same as the ToolTip property and see if I can accidentally
hijack the functionality.
Tom P.
"James Swindell" <ja******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Your UserControl should not be concerned with the setting or displaying of
a tooltip. It's the job of the developer to instruct the control what
text to display when using the ToolTip component. If you want, you could
always just create a custom Hint property.
"Henry Padilla" <pa******@hotmail.com> wrote in message
news:25***************@newssvr33.news.prodigy.com. ..I am making a UserControl that is entirely taken up by Labels. I have
found a way to pass the Click even to the outside (I have the same handler
for each label.click and that raises a this.OnClick(e); )
How do I do this with whatever mystery is the ToolTip component? Since
the UserControl surface is not exposed, it will never send the ToolTip
whatever it needs to fire. I've tried the OnMouseHover() I've tried
looking for the ToolTip component in the parent and then do a GetTooltip
for the UserControl but there is no guarantee that the Tooltip will get
created and initialized
first.
Thanks for the help,
Tom P.