string fname="", lname="", faname="",mname="";
fname = textBox1.Text.ToString();
lname = textBox2.Text.ToString();
faname = textBox3.Text.ToString();
mname = textBox4.Text.ToString();
ListBox1.Items.Clear();
listBox1.Items.Add(fname.ToString() + lname.ToString());
listBox1.Items.Add(faname.ToString());
listBox1.Items.Add(mname.ToString());
string value="";
if(radioButton1.Checked)
{
listBox1.Items.Add(radioButton1.Text);
}
else if(radioButton2.Checked)
{
listBox1.Items.Add(radioButton2.Text);
}
string skil="";
if (checkBox1.Checked)
{
listBox1.Items.Add(checkBox1.Text);
}
else if(checkBox2.Checked)
{
listBox1.Items.Add(checkBox2.Text);
}
else if(checkBox3.Checked)
{
listBox1.Items.Add(textBox5.Text);
}
}</pre></pre>