I am having a problem with Visual Studio 2008 where all third party controls are greyed out in the toolbar so I cant add an OpenNetCF.ListBox2 control to my form.
I have managed to work around the problem by creating the control programatically and everything works. The problem I have is that Visual Studio IDE reports multiple errors about code generation every few seconds and its annoying the hell out of me. This has also started to happen when I try and change the name of a textbox on the form so it becoming a bigger problem.
"Code generation for property 'ImageList' failed. Error was: 'Object reference not set to an instance of an object.'"
Anybody know how to get rid of the problem, below is the designer code
Me.u_AdapterList = New OpenNETCF.Windows.Forms.ListBox2
''u_AdapterList'Me.u_AdapterList.BackColor = System.Drawing.SystemColors.Window
resources.ApplyResources(Me.u_AdapterList, "u_AdapterList")Me.u_AdapterList.DrawMode = OpenNETCF.Windows.Forms.DrawMode.Normal
Me.u_AdapterList.EvenItemColor = System.Drawing.SystemColors.ControlMe.u_AdapterList.ForeColor = System.Drawing.SystemColors.ControlText
Me.u_AdapterList.ItemHeight = 60Me.u_AdapterList.LineColor = System.Drawing.SystemColors.ControlText
Me.u_AdapterList.Name = "u_AdapterList"Me.u_AdapterList.SelectedIndex = -1
Me.u_AdapterList.ShowLines = True
Me.u_AdapterList.WrapText = FalsePrivate WithEvents u_AdapterList As OpenNETCF.Windows.Forms.ListBox2
I have added the ImageList into the designer with a value of Nothing but it does not solve the problem.