Solved

Popup panel or tooltip

Posted on 2004-10-18
4
777 Views
Last Modified: 2008-02-01
Hi,

I want to popup a panel on the mousehover event of a listbox on a winform. The panel should appear where the mouse is, and it should contain as many lines as items in the listbox control.

I am also open to a tooltip implementation as well, but the tooltip may be a little too cutesy for my requirement. Besides, tooltip is not multilined, right?

Well any suggestions are appreciated.

Thanks! =]
0
Comment
Question by:gregasm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 375 total points
ID: 12343569
0
 
LVL 48

Assisted Solution

by:Mikal613
Mikal613 earned 375 total points
ID: 12343572
0
 
LVL 18

Assisted Solution

by:armoghan
armoghan earned 125 total points
ID: 12344939
This is a differnt kind of tooltip may be of some help in making a custom tooltip shape
http://www.codeproject.com/cs/miscctrl/BallonToolTips.asp

and for multiline I think the method shown in Mikal613 first link should work that is
Me.ToolTipProviderCtl.SetToolTip(Me.Button1, "this is" & environment.NewLine & _
    "a multiline" & environment.NewLine & "tooltip!")
0
 
LVL 8

Author Comment

by:gregasm
ID: 12394070
Thanks guys. The answers are good quality.

I had a listbox that might display more items than it can visibly display when initialized to its default height. This is why I wanted to use a tooltip.

In the end, I ended up dynamically resizing the listbox based on the number of items it contains. It is a more elegant approach in this particular scenario, but if I ever need specialized tooltips, I know where to go.

Thanks.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question