If you put a breakpoint on the IF line, what is the value of lstActiveMedProbs.Items.Count, when there are no items in the list?