A silly problem

After three years of programming WinForms, it’s the first time I’ve encountered this error.

It’s a pretty vague error “Too many items in the combo box.”, without an inner exception. Even weirder, my ComboBox was empty when I used the Add method to insert a custom DTO object. So I went into debug mode and after a couple of minutes, a bell rinkled.

continue reading…