Professional Documents
Culture Documents
SOLUTION
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
if (radioButton1.Checked == true)
{
richTextBox1.Text = richTextBox1.Text + "gender " + radioButton1.Text +
"\n";
}
else if (radioButton2.Checked == true)
{
richTextBox1.Text = richTextBox1.Text + "Gender " + radioButton2.Text +
"\n";
}
else
{
richTextBox1.Text = "not selected";
}
if (radioButton4.Checked == true)
{
richTextBox1.Text = richTextBox1.Text + "department:" + radioButton4.Text
+ "\n";
}
else if (radioButton5.Checked == true)
{
richTextBox1.Text = richTextBox1.Text + "department:" + radioButton5.Text
+ "\n";
}
else if (radioButton6.Checked == true)
{
richTextBox1.Text = richTextBox1.Text + "department:" + radioButton6.Text
+ "\n";
}
else if (radioButton7.Checked == true)
{
richTextBox1.Text = richTextBox1.Text + "department:" + radioButton7.Text
+ "\n";
}