VB.NET, C#, PowerShellを使用しているエンジニアのためのサイト。
基本的な使用方法から開発で役立つTipsまで幅広く取り扱っています。
<< 前のTips 次のTips >>
RadioButtonをトグルボタン(押されたら押されたときの外観を維持、次に押されたら元の外観に戻す)として使用するには、Appearanceプロパティに Appearance.Buttonをセットし、AutoCheckプロパティにfalseを設定します。ボタンが押されるとCheckedプロパティがtrueとなります。
private void Form1_Load(object sender, EventArgs e) { //外観をトグルボタンにする radioButton1.Appearance = Appearance.Button; radioButton2.Appearance = Appearance.Button; radioButton3.Appearance = Appearance.Button; //Checked値と外観を手動で設定できるようにFalseにする radioButton1.AutoCheck = true; radioButton2.AutoCheck = true; radioButton3.AutoCheck = true; }
<< 前のTips 次のTips >>