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 ole used for?
How to bind the controls(best practice) comboboxes to the data in the dataset?
Give few examples of datareader that is used in different dataproviders.
What is execute scalar in ado.net?
What is bubbled event can you please explain?
How to check if the Dataset has records ?
How do you update a dataset in ado.net and how do you update database through dataset?
Why do we serialize data?
What are all the different authentication techniques used to connect to MS SQL Server?
What is the difference between Datareader and Dataset?
How to maintain the relation between two tables in ADO.NET?
how we can fire event in databound coulm in datagfrid withot using button?
What is the difference between ADO and ADO.Net?
Can we load multiple tables in a dataset?
What are the difference between readonly vs. Const?