I have a class that derives from ComboBox. I want to fill the Items list inside its constructor. Problem is, when I add it to another control (using the designer) the initialization gets put in the parent’s InitializeComponent() method. This doubles the items in the list.
How to stop the designer from doing this?
If this is not posible then:
What is the best practice for Initializing an Items list in a child class that derives from ComboBox?