Solved

Popup panel or tooltip

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

626 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