Log in

View Full Version : Solved: Listbox MouseHover and controlToolTip



nepotist
09-14-2009, 08:45 AM
Hello,

I am Planning to use a Listbox that is bound to a table which has standars that a user needs to meet based on there input values.
This table has three columns one the ID, two Abbrevation and three description.
What I trying to do is as the descriptions are huge, I Would like to show the use the description in a tooltip when the user hovers over each record, The tool tips should show its description. I know it would be possible when the use selects as particular item I would be able to do it. But is it possible when the user just hovers overit. ??

nepotist
09-14-2009, 12:18 PM
I figure there is noway to do this..but can some one help me with this..

Is there anyway to format the tooltip like as it shows the description in a single line can this be modified to show in multi line ??

Another thing is that I am using two list boxes to one that shows all the allowable standards and there is a other list box that shows the user selecte listboxes.
every time the user add a standard I would like to make sure that he already did not make that selection. So I need to loop throught the items in the selectedListBox and make sure that the selection was not made before.

How do I loop throught the items in the selected listbox.

Some guidance would be appreciated.

Thank you

orange
09-16-2009, 08:03 AM
I figure there is noway to do this..but can some one help me with this..

Is there anyway to format the tooltip like as it shows the description in a single line can this be modified to show in multi line ??

Another thing is that I am using two list boxes to one that shows all the allowable standards and there is a other list box that shows the user selecte listboxes.
every time the user add a standard I would like to make sure that he already did not make that selection. So I need to loop throught the items in the selectedListBox and make sure that the selection was not made before.

How do I loop throught the items in the selected listbox.

Some guidance would be appreciated.

Thank you

Did you know that you can create a tool tip that has multiple lines?

A)

1) Select anything in design view that has ControlTip Text in
properties (Other tab).
2) Type in your first line.
3) Hold down the Ctrl key and push Enter.
4) Type a space. (Without a space this blank line gets ignored.)
5) Hold down the Ctrl Key and push Enter.
6) Type in your second line.
7) With the cursor in the ControlTip Text field, move up and down with
the arrow keys to review what you entered.
8) Go back to form view to review the Tool Tip.


B)

You can also do this by setting the tooltip in code, where you can use the vbcrlf constant to insert the carriage return. The code approach also allows you to reflect variable information in the tooltip.

nepotist
09-23-2009, 06:06 AM
Hey Orange,
I thought of that Idea, but that wouldnt work for me as the text I want to show is more than what the tool tip allows.... so I formatted it in such a way that when user select a value in the list box , another form with all the information pops up.. I couldnt think of anything else though..