private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) {//to lower all small string delete = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().ToLower(); if (delete == "delete") { string path = dataGridView1.Rows[e.RowIndex].Cells["FullName"].Value.ToString(); Directory.Delete(path); /* DirectoryInfo di = new DirectoryInfo(path); * di.Delete();*/ MessageBox.Show("Deleted successfully"); } else { IOTestcs io = new IOTestcs(); io.Show(); } }
private void IOTestToolStripMenuItem_Click(object sender, EventArgs e) { IOTestcs it = new IOTestcs(); it.Show(); }