我讓一個Supertooltip(來自DotNetBar)出現在NumericUpDown的每一個控制。但是我只需要在NumericUpDown的TextBox上使用supertooltip。這是我當前的代碼:做功能只有1控制NumericUpDown
foreach (Control c in NumericUpDown.Controls)
{
NumericUpDownToolTip.SetSuperTooltip(c, NumericUpDownSuperToolTip);
}
//Declarations:
//NumericUpDownToolTip is a SuperToolTip from DotNetBar
//NumericUpDownSuperToolTip is the configuration of the SuperToolTip (for example: the text of the tooltip)
那麼如何設置工具提示只在文本框?
謝謝!短代碼,簡單,像魅力一樣工作。 – HitomiKun