2016-2017年简历生成器2016-2017年简历生成器
编写程序,完成学生入学登记任务。要求登记学生姓名、年龄‘性别、所在省、民族和高考
分数信息。
控件 属性 设置值
入学登记 Form1 text
学生信息 groupBox1 text
姓名 Label1 text
textBox1
年龄 Label2 text
textBox2
性别 groupBox2 text
男 Radiobutton1 text
女 Radiobutton2 text
民族 groupBox3 text
汉族 Radiobutton3 tex...
2016-2017年简历生成器
编写程序,完成学生入学登记任务。要求登记学生姓名、年龄‘性别、所在省、民族和高考
分数信息。
控件 属性 设置值
入学登记 Form1 text
学生信息 groupBox1 text
姓名 Label1 text
textBox1
年龄 Label2 text
textBox2
性别 groupBox2 text
男 Radiobutton1 text
女 Radiobutton2 text
民族 groupBox3 text
汉族 Radiobutton3 text
少数民族 Radiobutton4 text
所在省 Label3 text
comboBox1
高考分数 Label4 text
textBox3
最终结果 groupBox4 text
textBox4 MultiLine true
ScrollBar Vertical
登记 Button1 text
取消 Button2 text
private void Form1_Load(object sender, EventArgs e)
{
radioButton1.Checked = true;//让性别“男”选中
radioButton3.Checked = true;//让民族“汉族”选中
北京");//给comboBox1添加条目 comboBox1.Items.Add("
comboBox1.Items.Add("天津");
comboBox1.Items.Add("上海");
comboBox1.SelectedIndex = 0;//选中“北京”
}
private void button2_Click(object sender, EventArgs e) //“取消”按钮的单击事件
{
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
textBox4.Text = "";
radioButton1.Checked = true;//让性别“男”选中
radioButton3.Checked = true;//让民族“汉族”选中
选中“北京” comboBox1.SelectedIndex = 0;//
}
private void button1_Click(object sender, EventArgs e) //"登记"按钮的单击事件
{
if (textBox1.Text != "")
textBox4.Text ="姓名: "+textBox1.Text;
if (textBox2.Text != "")
textBox4.Text=textBox4.Text+"\r\n"+ "年龄: "+textBox2.Text;
if(radioButton1.Checked)
textBox4.Text = textBox4.Text + "\r\n" + "性别: 男";
else
textBox4.Text = textBox4.Text + "\r\n" + "性别: 女";
if (radioButton3.Checked)
textBox4.Text = textBox4.Text + "\r\n" + radioButton3.Text;
else
textBox4.Text = textBox4.Text + "\r\n" + "民族: "+radioButton3.Text;
textBox4.Text = textBox4.Text + "\r\n" + "所在省:"+comboBox1.SelectedItem.ToString();
textBox4.Text = textBox4.Text + "\r\n" + "高考分数:" +textBox3.Text;
}
3
本文档为【2016-2017年简历生成器】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。