in my application i want to add Tool-tips.
after configure the tool tip i want the option to distinguished between the label who activate the Tool tip in order to show the appropriate text so in the Tool tip function i am try to do it but got an error: “The type ‘Accessibility.IAccessible’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
private void toolTip1_Popup(object sender, PopupEventArgs e)
{
string st = e.AssociatedControl.AccessibilityObject.Parent.Name;
}
From MSDN
So you just need to add this reference using the project references.
Of course the PopupEventArgs contains the control for which the tooltip is drawn and thus you could simply use
e.AssociatedControl.Name