>hi all
>help me please
>i want to add items interactively to a listbox . i have a textbox in my form and i want to add number to this listbox by this textbox value(it is a employee id) and in keypress method i want search this value in one table and if this is in table the name of employee add to listbox with his number(textbox.value) but in two column in one row (column 1 employee id) (column 2 employee name that finded)
This is a sample only, on how to add items. You will have to adjust it to your specific needs:
In the ListBox.Init(), place the following command:
This.AddItem("aaa")
This.AddItem("bbb")
This.AddItem("ccc")
The same commands work for ComboBoxes, too.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)