工具栏上的文本按钮

Cen*_*tro 4 .net toolbar winforms

我想在 WinForms 工具栏上添加一个文本按钮(工具栏上的标准按钮只能包含图像)。

文本框、组合框可以轻松添加到工具栏上,但没有文本按钮选项。

如何才能做到这一点?

UPD我所说的“文本按钮”是指标准的Windows 按钮。

Chr*_*Xue 5

ToolStripItem.DisplayStyle设置为Text

var toolStripButton = new ToolStripButton();
toolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Text;
Run Code Online (Sandbox Code Playgroud)