View Full Version : Solved: ToolTip for each item in combobox
pannai
01-08-2007, 08:16 AM
Hi
I am creating a combobox within an userform. It has list item with string length greater than the width of combobox. So the combobox doesn't show the full text for the list items. So I want to show the tooltip for each list items while the user moves the mouse over the list items.
Can anyone help me how to do this?
Thanks in advance
Andy Pope
01-08-2007, 08:56 AM
Have you tried adjusting the ListWidth property?
ComboBox1.ListWidth = "200"
pannai
01-08-2007, 09:04 AM
Have you tried adjusting the ListWidth property?
ComboBox1.ListWidth = "200"
Hi
I am adding the list items dynamically. And also I have more controls within the userform which is of medium size. So if the width of combobox increases, it may overlap with other controls in the form. So If it display the full value of list item of combobox as Tooltip, it will be good
Thanks
Andy Pope
01-08-2007, 09:06 AM
I suggested the ListWidth property not the Width property.
The listwidth will change the size of the dropdown section of the combobox.
So yes it may cover other controls on your userform but only whilst the user is trying to select something.
pannai
01-08-2007, 09:13 AM
I suggested the ListWidth property not the Width property.
The listwidth will change the size of the dropdown section of the combobox.
So yes it may cover other controls on your userform but only whilst the user is trying to select something.
Hi Andy,
It solves my problem. Thanks. But for the knowledge I want to know can we show the tooltip for the list items?
Andy Pope
01-08-2007, 09:20 AM
I don't think you can as the tooltip is not displayed whilst the droplist is showing.
pannai
01-08-2007, 09:35 AM
Thanks Andy for your Help.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.