RE: Tooltip Problems



Thanks, this workaround worked perfectly!

"Linda Liu[MSFT]" wrote:

Hi,

However, sometimes the tool tip appears in the wrong location.

Do you mean that the balloon ToolTip doesn't point to the target contol for
the first time it pops up?

This is a known issue of ToolTip in VS2005. In fact, this problem doesn't
exist when the balloon ToolTip pops up for the second time. If we set the
ToolTipText property for the target control on the tooltip, this problem
doesn't exist either.

The workaround is to call the Show method of the ToolTip twice. The
following is a sample.

private void SetToolTip(ToolTipIcon icon, string title, string message)
{
_toolTip.IsBalloon = true;
_toolTip.ToolTipIcon = icon;
_toolTip.ToolTipTitle = title;
_toolTip.Show("", this.textBox1);
_toolTip.Show(message, this.textBox1);
}

Hope this helps.
If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: NotifyIcon in a form
    ... Generally, we use ToolTip component ... to display tool tip text for a control on a form. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Ballon ToolTip
    ... I have run your sample program on my machine and did see the problem. ... doesn't exist when the tooltip appears for the second time. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Ballon ToolTip
    ... I have run your sample program on my machine and did see the problem. ... doesn't exist when the tooltip appears for the second time. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Templated Combobox Tooltips from Items
    ... You can use a converter to display the tooltip of the current selected item ... ComboBoxItem selectedItem = value; ... Microsoft Managed Newsgroup Support Team ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Tooltip Problems
    ... the first time it pops up? ... This is a known issue of ToolTip in VS2005. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)