Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there.

I use to update labels from another thread running by the standard way

if (lblBloqueados.InvokeRequired)
            lblBloqueados.Invoke(new LabelDelegate(ABloqueados), new object[] { pMensaje });
         else
            lblBloqueados.Text = pMensaje;


Now I'm trying to update the ToolTipText of a control, but the ToolTip control doesn't have the InvokeRequired status. So I don't know how to solve it.

Any help. Thanks in advance
Posted

1 solution

Use the Invoke function of the form on which the control is. It's very likely that the form and its controls were created on the same thread.
 
Share this answer
 
Comments
FernandoUY 5-Dec-11 18:36pm    
Hi Akos. I'm creating the UC that have the ToolTip into another UserControl (container). The UC I'm using, also contains 5 other UserControls, and in 3 of them is where I'm trying to use the ToolTipText.
Thanks for your answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900