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 is ado.net object model?
What is ado.net tutorial?
Explain the role of data provider in ado.net?
What are the differences between OLEDB and SQLClient Providers?
What is ole used for?
What does datareader object do?
Explain the architecture of ado.net?
Define partial class?
Which object of ado contains datarow datacolumn collection?
Explain the two fundamental objects in ado.net?
What is ado.net in mvc?
How to add an aggregate column?
Does executenonquery return a value?
Which is the feature of ado.net?
What is sqlconnection and sqlcommand?