private void tbBeginMarker_TextChanged(object sender, EventArgs e) { ValidateBeginMarkerText(); if (isValidBeginMarker) ValidateEndMarkers(); // make sure the end markers are still valid with this change HideOKBtn(); }