Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C#, .NET and if-statements.

Name: Anonymous 2012-10-17 23:40

So I'm here, writing this little Forms program because I want something with a GUI that I can use to interface with Wget, Youtube-dl, and FFMpeg, and all's going well until I decide to add functionality to the RadioButtons on my form. Here's the declarations for one of the two radiobuttons currently on my form, and the eventhandler that runs when I click the "accept" button.

>he doesn't know if code tags work on /prog/
>laughingwhores.jpg
        RadioButton youtubeRadio = new RadioButton();
        youtubeRadio.BackColor = Color.FromArgb(0, 255, 255, 255);
        youtubeRadio.ForeColor = Color.White;
        youtubeRadio.Text = "Youtube";
        youtubeRadio.AutoSize = true;
        youtubeRadio.Location = new Point(5, 190);


    private void accept_Click(object sender, EventArgs e)
    {
        if(standardRadio.Checked)
        {
            MessageBox.Show("Standard");
        }
        else if(youtubeRadio.Checked)
        {
            MessageBox.Show("Standard");
        }
    }


I've read though all of the documentation I could find on event handlers, radiobuttons, normal buttons, even check boxes, and I can't find a single reason why this doesn't work. It runs fine when there are no if-statements surrounding the code, but it doesn't even fire when they're in place. Any suggestions?

Name: Anonymous 2012-10-18 20:11

>>15
just resolder it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List