我想在WinForms工具欄上添加一個文本按鈕(工具欄上的標準按鈕只能包含圖像)。
文本框,組合框可以輕松添加到工具欄上,但沒有文本按鈕選項。
怎麽能實現呢?
UPD By 'text button' I mean the standard Windows button.
我想在WinForms工具欄上添加一個文本按鈕(工具欄上的標準按鈕只能包含圖像)。
文本框,組合框可以輕松添加到工具欄上,但沒有文本按鈕選項。
怎麽能實現呢?
UPD By 'text button' I mean the standard Windows button.
設置 ToolStripItem.DisplayStyle 正文:
var toolStripButton = new ToolStripButton();
toolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Text;