private void SetClientTypeDisplay(string clientType) { this.pnlCompany.Visible = (clientType.Trim() == "Company");and that works, so I guess I'll never work out what the problem was (unless I get a chance to put it back to the original and step through it).