Hi,
I have written a custom combobox that inherits from combobox into which I load 5 objects. This is part of the custom combobox code (within the constructor).
When I put this combobox on to a form and see it in action the combobox contains 10 items - the original 5 plus the same 5 repeated.
I have looked at the form's designer code and can see that within InitialiseComponent there is code to add the 5 objects into the combobox, which the custom combobox already has loaded, hence why I get 10. If i remove this code the combo works fine, but isn't there a way to set up the custom combo so that it doesn't cause a form to load the objects back into itself?
Any help would really be appreciated.