HELP Needed with ListBox2

Last post 05-30-2008 3:45 by Phil Murray. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-30-2008 3:45

    HELP Needed with ListBox2

    Hi All,

     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

    Me.AdaptersTab.Controls.Add(Me.u_AdapterList)

    ''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.Control

    Me.u_AdapterList.ForeColor = System.Drawing.SystemColors.ControlText

    Me.u_AdapterList.ItemHeight = 60

    Me.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 = False

    Private 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.

    HELP

    Phil

     

    Filed under: , ,
Page 1 of 1 (1 items)