The CheckedChanged event is raised when the radio button is checked or unchecked. The problem with your code above is that: Assuming 1 was previously checked when 2 is clicked, a checkedchanged for 2 is raised,which unchecked 1 this raises checkedchanged for 1 which also disables 2. At such both are disable (The scenario above assumes that the control are in different containers) You could use this code private void radioButton1_CheckedChanged(object sender, EventArgs e) { radioButton2.Checked = !radioButton1.Checked; } private void radioButton2_CheckedChanged(object sender, EventArgs e) { radioButton1.Checked = !radioButton2.Checked; }
K
Koocurrent
@Koocurrent
Posts
-
simple radio button question -
Collision Detection in DirectXHi, In a game I'm writing, I have 2 main meshes: Landscape and house. The landscape is where the player walks and the house is where he lives. The house is every detailed with stairs, doors and all other stuff. Problem: My problem is that the character simple walks through the walls and doors and I cannot climb the stair. Can someone please help me with the code on collision detection so that I will not walk through walls, the logic for opening the door and how to implement the climbing of stairs I'm using Artificial Engine but it has exposed the directx classes for any help in direct x will be very helpful. Thank you