求谁能够完善
using System;using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 综合训练
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
String strmsg = "";
strmsg += "您输入了如下信息:\r\n";
strmsg += groupBox1.Text + ":+\r\n";
strmsg += groupBox5.Text + ":+\r\r";
strmsg += groupBox7.Text + ":+\r\r";
if (checkedListBox1.CheckedItems.Count != 0)
{
int i;
String s = "";
for (i = 0; i <= checkedListBox1.CheckedItems.Count - 1; i++)
{
if (i > 0)
s += ",";
s += Convert.ToString(checkedListBox1.CheckedItems[i]);
}
strmsg += groupBox3.Text + ":" + s + "\r\n";
MessageBox.Show(strmsg);
}
}
/* private void button1_Click(object sender, EventArgs e)
{
this.openFileDialog1.Filter = "JPG文件(*.JPG)|*JPG";
this.openFileDialog1.FilterIndex = 1;
this.openFileDialog1.InitialDirectory = "..\\"; // .当前目录 ..上级目录
if (this.openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK)
{
try
{
pictureBox1.Load(openFileDialog1.FileName); //动态加载
}
catch (Exception ex)
{
MessageBox.Show(Convert.ToString(ex));
}
}
}*/
private void textBox5_TextChanged(object sender, EventArgs e)
{
}
private void progressBar1_Click(object sender, EventArgs e)
{
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
this.numericUpDown1.TabIndex=3000;
}
private void button3_Click(object sender, EventArgs e)
{
Application.Exit();
}
/* private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
comboBox2.Text = "";
switch(comboBox1.SelectedIndex){
case0:
comboBox2.Items.Clear();
comboBox2.Items.Add("教授");
comboBox2.Items.Add("副教授");
comboBox2.Items.Add("讲师");
case1:
comboBox2.Items.Add("局级");
comboBox2.Items.Add("外级");
comboBox2.Items.Add("科级");
comboBox2.Items.Add("职员");
case2:
comboBox2.Items.Add("高级工程师");
comboBox2.Items.Add("工程师");
comboBox2.Items.Add("技术员");
comboBox2.Items.Add("工人");
break;
}*/
}
}