Hi all,

I am using two radiobuttons in visual studio window form. Now I want some buttons to be factional when radiobutton1 is pressed and the same thing with radiobutton2.

To do so, I copied and paste the coding of the buttons in the radiobutton1 loop, as show below:

Code:
        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            private void button1_Click_MouseDown(object sender, MouseEventArgs e) 
           {
            label1.Text = "X"; 
           }

            private void button1_Click_MouseUp(object sender, MouseEventArgs e)  
           {
            label1.Text = "Y";   
           }
        }
When running, the program is giving errors. Can someone please tell me the way to do this ??

Thanks in advance.