I’m extending the ComboBox class in VB.NET and I’m running into a problem prepopulating the collection. I try to do so by using Me.Items.Add() calls in the New() sub. However, once I place the control on a form in the form designer, Visual Studio automatically adds those items to the collection in form designer, then they are added again at runtime. How can I make them only added once?
I’m extending the ComboBox class in VB.NET and I’m running into a problem prepopulating
Share
i think you have to check DesignMode property.
in Constructor code you have to add