SOLVED: InitializeComponent() wasn't being called. Thought this was automatic?
I would have deleted this post, but there is no option.
I dragged the RadCheckedListBox to the form. But when I try to add data to the Item property, I get an exception because the control is null. I thought that like other controls, the RadCheckedListBox methods and properties could be accessed without having to be instantiated first. The instantiation is in Private Sub InitializeComponent() :
Me.cklstSuppressedTickets = New Telerik.WinControls.UI.RadCheckedListBox()CType(Me.cklstSuppressedTickets,System.ComponentModel.ISupportInitialize).BeginInit
Me.grpSuppressedTickets.Controls.Add(Me.cklstSuppressedTickets)
Me.cklstSuppressedTickets.Columns.AddRange(New Telerik.WinControls.UI.ListViewDetailColumn() {ListViewDetailColumn1})
Me.cklstSuppressedTickets.Location = New System.Drawing.Point(78, 61)
Me.cklstSuppressedTickets.Name = "cklstSuppressedTickets"
Me.cklstSuppressedTickets.Size = New System.Drawing.Size(290, 357)
Me.cklstSuppressedTickets.TabIndex = 0
cklstSuppressedTickets is the RadCheckedListBox that I added to the form using the designer. When I highlight the control in code during debug, it shows cklstSuppressedTickets as 'Nothing'.
Private Sub LoadList()
Dim tkt As KeyValuePair(Of String, string)
For each tkt In dctTickets
cklstSuppressedTickets.Items.Add(tkt.Key & " - " & tkt.Value)
Next
End Sub