private void btnAddGUID_Click(object sender, EventArgs e) { Guid iid = Guid.NewGuid(); edtInstrumentUUID.Value = iid.ToString().ToUpper(); errorProvider1.SetError(edtInstrumentUUID, ""); //Clear any error that may be on the control }