我想在winform的combobox的下拉项中添加tooltips,每项不同,鼠标移上去就显示,有办法么?
ps:不要说捕捉鼠标坐标,然后确定位置什么云云。这个我会,有没有简便点的。感谢大家。

解决方案 »

  1.   

    你可以在combobox的selectedindexchanged去动态加载tooltip,例如:
    private ToolTip toolTip1 = new ToolTip();// Set up the delays for the ToolTip in selectedindexchanged event
    toolTip1.AutoPopDelay = 33000;
    toolTip1.InitialDelay = 1000;
    toolTip1.ReshowDelay = 0;// Force the ToolTip text to be displayed whether or not the form is active.
    toolTip1.ShowAlways = true;
    // Set up the ToolTip text for the Button and Checkbox.
    toolTip1.SetToolTip( yourComboBox, yourComboBox.Text );
      

  2.   

    感谢Knight94(愚翁),但是selectedindexchanged是监听ComboBox的选中事件的,如何监听ComboBox在下拉状态中的鼠标悬停时间呢?
    这个才是我想要的效果.
      

  3.   

    我遇到的是一样差不多的问题,我的是mainmenu我要在上面用tooptip显示对应的英文