By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,263 Members | 2,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,263 IT Pros & Developers. It's quick & easy.

passing Tooltip object

P: n/a
Hi,

I'm currently writing an application (in VS 2005 bta 2) and made some own
user controls. In each user control I added a ToolTip object so i can set
some tooltips on checkboxes etc.

What I wanted to do is to add a ToolTip object on the starting form, and
pass this ToolTip object to the user controls. In each user control I
created a property ToolTip with only a setter which accepts the passed
ToolTip.
I want to pass this ToolTip object from the main form so I am able to
configure this ToolTip and all the others will do the same.

I hope it's al little bit clear...

Here is an example:

Form
private ToolTip toolTip
uc1.ToolTip = toolTip

User Control 1
private ToolTip privToolTip
property ToolTip with only a setter
public ToolTip ToolTip
{
set { privToolTip = value; }
}
uc2.ToolTip = privToolTip

User Control 2
private ToolTip privToolTip
property ToolTip with only a setter
public ToolTip ToolTip
{
set { privToolTip = value; }
}

Now here is the problem. If i set the properties in the Load events, my
ToolTips aren't replaced by the passed ToolTip... How can can I resolve
this?

Thanks in Advance

Yves
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.