Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > How to Set Tooltip to Combobox Item at Binding Time in vb.net
 

How to Set Tooltip to Combobox Item at Binding Time in vb.net

Hello,
I want to Set user Defined Tool Tip on Combo box Items using Vb.Net.

Thanks In Advance.
SADIQ MODAN  Tuesday, June 02, 2009 9:15 AM
Hi Sadiq,

The ComboBox control doesn't support the function you want, so we have to implement is by ourselves.

First of all, the drop down window of a ComboBox is a separate window from the ComboBox. Whenwe move the mouse in the drop down window, the ComboBox won't receive any Windows message. So we need to get the drop down window first and then capture the Windows messages the drop down window receives by replacing the default window procedure with our own procedure.

Once we get notified that the user moves the mouse, we can show the Tooltip for the lighlighted item.

Hope this helps.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Thursday, June 11, 2009 10:34 AM
Hi Sadiq,

The ComboBox control doesn't support the function you want, so we have to implement is by ourselves.

First of all, the drop down window of a ComboBox is a separate window from the ComboBox. Whenwe move the mouse in the drop down window, the ComboBox won't receive any Windows message. So we need to get the drop down window first and then capture the Windows messages the drop down window receives by replacing the default window procedure with our own procedure.

Once we get notified that the user moves the mouse, we can show the Tooltip for the lighlighted item.

Hope this helps.

Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Thursday, June 11, 2009 10:34 AM

Hello Linda,

How do we get to the drop-down window and capture windows messages there ?

Do you have a code example in c# that I could use to put up a tool-tip on my combo-box items.

--thanks

Ashok Murthy  Monday, August 03, 2009 11:10 PM

You can use google to search for other answers

Custom Search

More Threads

• How do I set species name?
• VS 2005 Pro - How do I make my own control show move not resize handles?
• Seeking a simple program ~ text to binary converter
• Remote Server Issues
• Treeview with contextMenustrip control
• TaskVision's Login/Ticket handler
• Rich Client not working on HTTPS Server...
• printing textbox in a customize paper size
• Inclusion of "content" files in build... HOWTO?
• object cannt be disposed