在Visual Studios 2010中向Windows窗体应用程序添加按钮

本文关键字:窗体 应用程序 添加 按钮 Windows 中向 Visual Studios 2010 | 更新日期: 2023-09-27 18:22:33

所以我正在为一个内部工具创建一个应用程序,并试图将其中一个表单上的复选框功能转移到一个按钮上。使用设计器界面,最好的方法是什么?提前感谢!

在Visual Studios 2010中向Windows窗体应用程序添加按钮

检查复选框本身的外观属性。我从rwiti答案中得到这个,它提醒我CheckBox也有Appearance属性。

chk.Appearance = Appearance.Button;

你完了。。

使用RadioButton并执行此

this.radioButton1.Appearance = System.Windows.Forms.Appearance.Button;