G
Guest
I've created a component that inherits from ComboBox. Wiithin its
constructor, I've hardcoded some initial items that I'd like added. These
items are of a custom class.
When I add my control to a Form, the code-behind file contains code for each
item. This seems unecessary and causes items to be added more than once
(first, because of my ComboBox constructor; again, because of the code-behind
items).
I suspect that there may be a way, within my ComboBox constructor, that I
may reset a flag indicating the Items property has changed. Is that true?
If so, how might I do that?
constructor, I've hardcoded some initial items that I'd like added. These
items are of a custom class.
When I add my control to a Form, the code-behind file contains code for each
item. This seems unecessary and causes items to be added more than once
(first, because of my ComboBox constructor; again, because of the code-behind
items).
I suspect that there may be a way, within my ComboBox constructor, that I
may reset a flag indicating the Items property has changed. Is that true?
If so, how might I do that?