hoe to clear data in the Data Combo box at runtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunilkds
    New Member
    • Feb 2008
    • 16

    hoe to clear data in the Data Combo box at runtime

    I want code for how to clear values in the datacombo at run time.


    Plz give corect method or solution
  • Teme64
    New Member
    • Sep 2008
    • 10

    #2
    You mean ComboBox?
    ComboBox1.Items .Clear() removes all items and
    ComboBox1.Items .RemoveAt(0) removes first item and in general
    If index>= 0 AndAlso index < ComboBox1.Items .Count Then
    ComboBox1.Items .RemoveAt(index )
    End If
    removes an item at the position "index".

    Teme64

    Comment

    Working...