private void open_Click(object sender, EventArgs e) { if (path.Text == "") { MessageBox.Show("Path cannot be blank"); } else { if (!IBMi.DirExists(path.Text)) { IBMi.CreateDirecory(path.Text); this.Close(); } else { MessageBox.Show("Chosen path already exists."); } } }