Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Popup panel or tooltip

Posted on 2004-10-18
4
Medium Priority
?
780 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 1500 total points
ID: 12343569
0
 
LVL 48

Assisted Solution

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

Assisted Solution

by:armoghan
armoghan earned 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

661 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