| Combo and List Boxes have similar commands so I have tied them together. Here are several commands associated with Combo and List Boxes: AddItem Clear List ListCount AddItem AddItem is used to place an entry into a Combo or List Box. To use this command type Object.AddItem ("Entry", Number Position) So for example to place an entry called: 'Hello' on the first line and: 'World' into a Combo Box named: 'Combo1' type: Combo1.AddItem ("Hello", 0) Combo1.AddItem ("World", 1) Clear Clear is used to clear all the entries in a Combo or List Box. To use it type: Object.Clear List List is used to return the text of an entry in a List or Combo Box. To use it type: Object.List (Number of Line) The first line is 0 then the second line is 1 and the third is 2 and so on. So for example to get a Text Box to display the text on the first line of a Combo Box type: Text1.Text = Combo1.List (0) ListCount ListCount is used to calculate the number of entries in a List or Combo. To use it type: Object.ListCount So for example to display the number of entries in a Combo Box type: Text1.Text = Combo1.ListCount |
Combo And List Boxes |
Express News India | Freelance ecommerce web development India