2013-07-16 101 views

回答

1

檢查外觀的CheckBox本身的性質。我從rwiti中得到這個答案,這讓我想起CheckBox也有Appearance屬性。

chk.Appearance = Appearance.Button; 

大功告成..

+0

請注意,雖然這使*看起來像一個按鈕,它仍然*工程*像一個複選框。這可能相當混亂。 –

+0

@CodyGray是的,但問題表明它將被用在'內部工具'中,所以這不會成爲我想的問題。甚至要求也是一樣的權利? –

1

使用RadioButton,併爲此

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

我想你錯過複選框本身具有這種性質。 –

+0

+1提醒我 –

相關問題