title: how to get a Combobox selection to display related information in labels?
body: <p>Im trying to get my labels to display information based off of my cbo selection.  (i.e. cbo = Class Name then the labels would show class title and units.)</p>
  
  <pre><code>Dim l As Integer
  
  'Connect to Database and get the registration information
  Using cnnOLEDB = New OleDbConnection(strConnectionString)
  
      ' Query the classschedule table for start of semester datas
      Using cmdOleDB = New OleDbCommand("SELECT [CourseTitle], [ShortTitle],[Units] FROM [Course]", cnnOLEDB)
          cnnOLEDB.Open()
          Using rdrOLEDB = cmdOleDB.ExecuteReader
              While rdrOLEDB.Read
  
                  CboCourse.Items.Add(rdrOLEDB.Item(0).ToString)
  
  
  
                  CourseArray(l, 0) = rdrOLEDB.Item(0).ToString
                  CourseArray(l, 1) = rdrOLEDB.Item(1).ToString
                  CourseArray(l, 2) = rdrOLEDB.Item(2).ToString
                  l = l + 1
  
                  lblCourseTitle.Text = (rdrOLEDB.Item(1).ToString)
                  lblUnits.Text = (rdrOLEDB.Item(2).ToString)
  
                  ' CboFormat.Items.Add()
                  ' CboDayTime.Items.Add()
                  ' CboLocation.Items.Add()
                  ' CboName.Items.Add()
              End While
          End Using
      End Using
  End Using
  </code></pre>
  
  <p>I know this is probably easy to do but i can not figure this out.<br>
  my information is in an array thats being read from a MS-access database</p>