Hi,
I want to bind the tooltip to the control dynamically according to the language.
Here is my code:
/// <summary>
/// This method will be used to bind the Tooltip to the controls.
/// </summary>
private void BindControlToolTips()
{
BindToolTipsToControls(pbHeadings, "Click here to get the Employee details from Database.");
}
/// <summary>
/// This method will be used to bind the tooltip to the specific control.
/// </summary>
/// <param name="control">Control</param>
/// <param name="tooltipMessage">string</param>
private void BindToolTipsToControls(Control control, string tooltipMessage)
{
ToolTip toolTip = new ToolTip();
toolTip.SetToolTip(control, tooltipMessage);
}
After that I want ot change the tooltip runtime like this:
BindToolTipsToControls(pbHeadings, "Click here to get the Department.");
The binding works properly but the issue is the new tooltip is placed on the old tooltip and the new tooltip is shorter that old one in this case both is display.