c#窗体编辑个人简历_C#个人简历完整代码
c#窗体编辑个人简历_C#个人简历完整代码
此代码为个人编写! QQ:594923603
以下为主窗体代码(默认为Form1):
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace jian
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
/*this.MaximizeBox = false;
(this.Form1_SizeChanged); */
}
private void button2_Click(object sender, EventArgs e)
{
//以下各个控件名称要对应你所添加控件名称一致!!
string mm = "\n",tm=""; //= this.textBox1.Text;
//mm为变量可自己命名
if (textBox1.TextLength < 2)
{
MessageBox.Show("姓名不能太短或为空!", "错误");
textBox1.Focus();
return;
}
/* if (maskedTextBox1.Text == " - -")
{
MessageBox.Show("请输入身份证号!", "错误");
return;
}
if (textBox3.Text == "")
{
MessageBox.Show("请输入所学专业!", "错误");
return;
}
if (textBox5.Text == "")
{
MessageBox.Show("请输入毕业院校!", "错误");
return;
}
*/
if (comboBox3.Text == "初中" && comboBox4.Text == "硕士"|| comboBox3.Text == "初中" && comboBox4.Text == "博士" ||
comboBox3.Text == "初中" && comboBox4.Text == "学士" || comboBox3.Text == "高中(职高中专)" && comboBox4.Text == "硕士" ||
comboBox3.Text == "高中(职高中专)" && comboBox4.Text == "博士" || comboBox3.Text == "高中(职高中专)" && comboBox4.Text == "学士"
|| comboBox3.Text == "专科(高职)" && comboBox4.Text == "硕士" || comboBox3.Text == "专科(高职)" && comboBox4.Text == "博士" ||
comboBox3.Text == "专科(高职)" && comboBox4.Text == "学士" || comboBox3.Text == "本科" && comboBox4.Text == "硕士" ||
comboBox3.Text == "本科" && comboBox4.Text == "博士" || comboBox3.Text == "研究生" && comboBox4.Text == "学士" )
{
MessageBox.Show("学历与学位不匹配");
return;
}
mm += "\n\t\t\t" + textBox1.Text+ "的简历";
//mm+= "\n 姓名:" + textBox1.Text;
mm += "\n\n" + textBox1.Text;
mm += "," + (radioButton1.Checked ? "男" : "女");
if