validating radio button
<p>I am programming in c# and I have some radio buttons in my form, and I want to make validation assuring that the user selected all the radio buttons in the button, so my method is :</p>

<pre><code> public bool check_radiobutton(RadioButton radio1, RadioButton radio2)
        {
            //none of them aare selected
            if ((radio1.Checked) &amp;&amp; (radio2.Checked))
            {
                return false;
            }
            else
            {
                MessageBox.Show("You forgot to select a radiobutton!");
            }
            return true;
        }
</code></pre>

<p>but it did not work</p>
