Drop Down List! RRS feed

  • Question

  • How can i inserte a text on the drop down list that opears on top, like if i have a drop down list about colors and i like that the first sinth was "Shose a Color", hoo and the drop down list is populated whit a list from. But the problem is how can i insert the tex "Shose a Color" on the top of the Drop Down List!


    Anybody can hel?


    Monday, January 15, 2007 9:46 AM


  • Use the Insert() method:

          comboBox1.Items.Insert(0, "This goes on top");

    Monday, January 15, 2007 4:40 PM