示例#1
0
        private void 修改学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string[] vs = { dataGridView1.SelectedCells[0].Value.ToString(),
                            dataGridView1.SelectedCells[1].Value.ToString(),
                            dataGridView1.SelectedCells[2].Value.ToString(),
                            dataGridView1.SelectedCells[3].Value.ToString(),
                            dataGridView1.SelectedCells[4].Value.ToString() };

            MessageBox.Show(vs[0] + vs[1]);

            Form21 form21 = new Form21(vs, this);

            form21.ShowDialog();
        }
示例#2
0
        private void 添加学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form21 form21 = new Form21(this);

            form21.ShowDialog();//打开
        }