Solved

Popup panel or tooltip

Posted on 2004-10-18
4
775 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 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