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-19 5:41

>>20
Isn't out yet.

>>21
Ive considered making my own photolithography machine out of spare DVD drive steppers.  Theoretically it's possible, but I'm not well-versed enough in chemistry not to fuck shit up, nor do I have any idea where to get silicon wafers.

Stepping down the paranoia a bit and assuming that Microchip PICs with 128 bytes of RAM can't really contain any backdoors, one could interconnect a bunch of PICs and make a full 32-bit CPU out of it.

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