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 difference between entity framework and ado.net?
What is the hierarchy of data in databases?
Describe briefly an ADO.NET Dataset ?
How do you merge 2 datasets into the third dataset in a simple manner?
Explain the difference in an abstract class and an interface?
What is ado.net explain with diagram?
What is the significance of CommandBehavior.CloseConnection ?
Explain which name space is used to get assembly details?
How to retrieve the user id which is provided while windows authentication?
What is a control toolbox?
Which namespaces are used for data access?
What are ado.net objects?
What is connection string?
How to bind the controls(best practice) comboboxes to the data in the dataset?
Define different execute methods of ADO.NET command object ?