How to change System.Windows.Forms.ToolStripButton highlight/background color when checked?

前端 未结 3 894
执念已碎
执念已碎 2020-12-09 16:56

I have a ToolStripButton that is used as a radio button. When it is checked, a blue outline surrounds the button, but there is no background color. It is not clear enough fo

3条回答
  •  粉色の甜心
    2020-12-09 17:02

    on Event click for every toolStripButton

    private void toolStripButton4_Click(object sender, EventArgs e)
            {
                toolStrip1.Items[0].BackColor = SystemColors.ActiveCaption;
                toolStrip1.Items[1].BackColor = SystemColors.Control;
                toolStrip1.Items[2].BackColor = SystemColors.Control;
                toolStrip1.Items[3].BackColor = SystemColors.Control;
    
            }
    

提交回复
热议问题