private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked == true) { //Do stuff to open shapefile } }