>>> if ((this.lsbUsers.SelectedItem != null && this.lsbUsers.Text != string.Empty) >>> && this.LsbRoles.SelectedValue != null)>>
// if in vs2005 replace var by bool var selnull = this.lsbUsers.SelectedItem != null; var textempty = this.lsbUsers.Text != string.Empty; var lsbrolesnull = is.LsbRoles.SelectedValue != null; // put the break here // examine the 3 variables // your if( statement follows if ((this ....