title: Assigning text colors to individual dropdownbox list items
body: <p>This is a WinForms Application in VB. In my application I am trying to make it easier for the user to pick out items in a list quickly based on the items text color.. So I am trying to assign the color to each item using a select case statement as below... The problem is that I am getting an error saying "Public member 'Attributes' on type 'String' not found." VB flags the lines with the Attribute.Add param with this error.. Here is the code that I currently have...</p>
  
  <pre><code>   For Each u In _units
                  _counter += 1
                  u_lookupNumber_box.Items.Add((Convert.ToString(u.UnitId)) + " - " + (Convert.ToString(u.perMonthCost)))
                  Select Case u.occupied
                      Case Is = 0
                          u_lookupNumber_box.Items(_counter - 1).Attributes.add("style", "color: Yellow")
                      Case Is = 1
                          u_lookupNumber_box.Items(_counter - 1).attributes.add("style", "color: Green")
                      Case Is = 2
                          u_lookupNumber_box.Items(_counter - 1).attributes.add("style", "color: Red")
                      Case Is = 3
                          u_lookupNumber_box.Items(_counter - 1).attributes.add("style", "color: Blue")
                      Case Is = 4
                          u_lookupNumber_box.Items(_counter - 1).attributes.add("style", "color: Orange")
                      Case Is = 5
                          u_lookupNumber_box.Items(_counter - 1).attributes.add("style", "color: Purple")
                  End Select
              Next
  </code></pre>
  
  <p>Any ideas why I am getting this error?? I did notice that when I did the .attributes part when I hit "." and typed "att" it did not appear in the intelisense box in vb.. Which makes me think I need to assign the name "attributes" somehow to the dropdownbox first.. Thanks for any and all help...  </p>
  
  <p>It should be noted that u_lookupNumber_box is the name of the drop down box on my form..</p>