Public Sub New() MyBase.New() bizObject = New Csi.Biz.States InitializeComponent() Me.ValueMember = "StateCode" Me.DisplayMember = "Description" Me.DataSource = bizObject.GetAll().Tables(0) End SubWhat you need to do is bracket this code in an If statement that determines whether or not you are in design mode. All .NET Controls have a DesignMode property...unfortunately, its value is not set during instantiation! To solve this problem we have added a static/shared IsRunning property to the MM .NET mmAppBase class that you can use instead. For example:
Public Sub New() MyBase.New() bizObject = New Csi.Biz.States InitializeComponent() If mmAppBase.IsRunning Then Me.ValueMember = "StateCode" Me.DisplayMember = "Description" Me.DataSource = bizObject.GetAll().Tables(0) End If End SubCheck out the MM .NET Help topic "Why do I get errors when I open a component in design mode?" for more information.