Answer Posted / ravikv
The following code retrieves the all the items of a list
box in to another list box in a single button click :
public void button1_click()
{
for(int i = 0; i < listbox1.items.count;i++)
{
listbox2.items.Add(listbox1.items[i].Text.Tostring());
}
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are basic methods of dataadapter?
What is sql command in ado net?
How to check if the Dataset has records ?
What is sqlconnection and sqlcommand?
Explain how to find the given query is optimised one or not?
What are the advantages and disadvantages of using datalist?
What are the benefits of ADO.NET?
What are the different layers of ado.net?
What are the types of databinding?
How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?
What is ole in excel?
What is executenonquery ado.net?
Which database is the ado.net sql connection object designed for?
Which is the feature of ado.net?
Explain the overview of ado.net architecture?