How can I turn on 2 switches in a separate group field, since they are in the same group?

Well, I have 2 switches, and each of them exists in a different group box.
they act like they are not connected to each other.
but I want them to be the same as they exist in one form.
is there any way for 2? I can do this by processing a click and uncheck the box next to the other, but I was wondering if there is a better way?
thanks

Update:
I currently have

private void c_RadioButton1_CheckedChanged(object sender, EventArgs e) { if (RadioButton1.Checked) RadioButton2.Checked = false; } private void c_RadioButton2_CheckedChanged(object sender, EventArgs e) { if (RadioButton2.Checked) RadioButton1.Checked = false; } 

Update2: alt text

+4
source share
1 answer

If you have only one set of radio buttons, you can fake UIs by placing them at the form level, and not inside separate group fields.

To do this, in the visual studio you will have to manually edit the code created by the designer. Or place the radio notes outside the form and use the arrow keys to place them in the right place.

You must do this because, as soon as you drag the switch with the mouse, the designer will place it inside the group box.

+2
source

All Articles