I want to show Custom toolTips for each item in rddlist.
i can use visualItem, but thats not suitable. visualitem.Text, only show item text. I want to set Custom Text for each item. like:
for items = "text1", items = "not working", items = "it's too easy" and etc.
when rddlist popupOpened, and user,moving mouse on any item, tooltip must be show.
3 Answers, 1 is accepted
Thank you for writing.
In order to specify tool tip text for each item in the drop down you can handle the VisualListItemFormatting event and set the VisualItem.ToolTipText for each item. Thus, you can control what tool tip text to be set considering the visual and data item:
I hope this information helps. Should you have further questions I would be glad to help.
Thanks for Replay.
now, can i change this tooltips back color or font type or font color?
dropdownlist.visualitem.font only change the dropdown items font.
Thank you for writing back.
You can customize the way a tool tip is rendered by handling its Draw method. Note that the standard MS tool tips are used so you can follow the demonstrated approach in this thread: https://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.draw(v=vs.110).aspx
I have prepared a sample code snippet as well which result is illustrate din the below screenshot:
I hope this information helps. If you have any additional questions, please let me know.