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

How to limit the width of ToolTip control?

P: n/a
Extract the string from XML file, using ToolTip1.SetToolTip to load the
string, but the width is big, how to limit the width of ToolTip? thank you.
Nov 5 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
YXQ <YX*@discussions.microsoft.com>'s wild thoughts were
released on Tue, 4 Nov 2008 20:11:01 -0800 bearing the
following fruit:
>Extract the string from XML file, using ToolTip1.SetToolTip to load the
string, but the width is big, how to limit the width of ToolTip? thank you.
Why not just limit the text you assign to the tooltip?
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
Nov 12 '08 #2

P: n/a
On Nov 5, 6:11*am, YXQ <Y...@discussions.microsoft.comwrote:
Extract the string from XML file, using ToolTip1.SetToolTip to load the
string, but the width is big, how to limit the width of ToolTip? thank you.
How long Tooltip shows a text depends how long the text is. As Jan
pointed out, you need to limit the text by trimming or removing
specified range or use substring to set specified part of text.

Additionaly, tooltip's text is splitted into lines automatically when
the text is longer than your screen resolution's width, if your
concern was about aligning the long text of tooltip.

Hope this helps,

Onur Güzel
Nov 12 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.