private void textDir_TextChanged(object sender, EventArgs e) { buttonOK.Enabled = System.IO.Path.IsPathRooted(textDir.Text); }