Reducing code redundancy in C#
<p>I'm new to tinkering with C#, and so far that's the extent of it. I'm just tinkering for a small project I have.</p>

<p>The redundancy is driving me crazy, though. Writing long lists of similar code taking up line after line just doesn't sit well with me.</p>

<p>I have a few tabs with checkboxes and radio buttons in them, that's where I noticed the duplication the most. Unfortunately I... don't quite grasp every aspect of C# as well as I should, yet. So I was hoping to learn from you folks.</p>

<p>Example:</p>

<pre><code>//setup checkbox
    checkBox1.AutoSize = true;
    checkBox1.Checked = false;
    checkBox1.CheckState = CheckState.Unchecked;
    checkBox1.Location = new Point(5, 102);
    checkBox1.Text = "Check Box 1!";
    checkBox1.UseVisualStyleBackColor = true;

//set radio 1
    radio1.AutoSize = true;
    radio1.Checked = true;
    radio1.Location = new Point(5, 33);
    radio1.Size = new Size(20, 20);
    radio1.Text = "Radio-e-o-e-o";
    radio1.UseVisualStyleBackColor = true;
//set radio 2
    radio2.AutoSize = true;
    radio2.Checked = false;
    radio2.Location = new Point(5, 56);
    radio2.Size = new Size(18, 20);
    radio2.Text = "Option 2!";
    radio2.UseVisualStyleBackColor = true;
</code></pre>

<p>My instinct would be to set up some arrays with the variable data for things like the names and the distinct data. But as I said, I'm very new, I've only been tinkering... and the resources I've come across tend to either not match what I'm looking for, or add layers of complexity I'm probably not ready for.</p>
