-
January 5th, 2013, 01:50 PM
#1
Radiobuttons
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|