MDI Tooltip Problem

  • Thread starter Mitchell Vincent
  • Start date
M

Mitchell Vincent

Using VB.NET 2003, I have a tooltip control on an MDI child window's
control. When I hover over it when the application is running the
tooltip appears behind the parent window (I can only tell because it is
long and pokes out the side!).

Also, is there a way to include line breaks for tooltips added at design
time?
 
J

Jeffrey Tan[MSFT]

Hi Mitchell,

Thanks for your post!

#1, I did not see this issue before, can you provide a sample project to
help us reproduce this problem on our side for better understanding?

#2, Yes, normally windows will interpret '\n' character as link-break,
however, VS.net PropertyBrowser will place a second '\' infront of any '\'
we input, so if we input "this is \n a test" in PropertyBrowser, we will
get "this is\\n a test" in the generated code snippet. Regarding this
issue, we have to set the '\n' character manually in code file. Like this:
this.toolTip1.SetToolTip(this, "this is\n a test");

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top