ListBox items not showing

2 posts, 0 answers
  1. Asit Aithal
    Asit Aithal avatar
    32 posts
    Member since:
    Jul 2005

    Posted 08 Nov 2009 Link to this post

    I have the following code:

            dsNodes.ReadXml(ofdOpen.FileName)
            For Each tbl As DataTable In dsNodes.Tables
                Dim item As Telerik.WinControls.RadItem = New Telerik.WinControls.RadItem
                item.Name = tbl.TableName
                lbNodes.Items.Add(item)
                If blnListItemSelected = False Then
                    lbNodes.SelectedItem = tbl.TableName
                    blnListItemSelected = True
                End If
            Next

    This doesn't work. The Listbox shows as empty. What am I missing?
  2. Asit Aithal
    Asit Aithal avatar
    32 posts
    Member since:
    Jul 2005

    Posted 08 Nov 2009 Link to this post

    I Solved it. Had to import Telerik.WinControls.UI and not Telerik.WinControls
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top