日期:2014-05-20 浏览次数:20998 次
TabPage tap = new TabPage(); string title = dataGridView1.SelectedCells[0].Value.ToString(); tap.Name = title; tap.Text = title; if(!tabControl1.TabPages.Contains(tap)) { tabControl1.TabPages.Add(tap); //MessageBox.Show(tap.Name); }