I recently derived from a ComboBox to make a countries combo and included it
in couple of forms. The derived combo box loads an xml list of countries and
uses the DataSource and DisplayMember properties to point to the appropriate
node in xml. All this is done in the derived combo's constructor. This
causes forms designer to load slower as it seems to initialize these derived
combos with the country list.
If i did not care about the countries list at design time (I do want to see
the combo box as is though) and did care about the time taken to open forms
in designer, is there anything i could do to make this faster? Should i
wait to load the countries list? if so, when will i do it? Ideally, if i
could turn off the constructor code execution during form design that will
be great.
Priyesh