Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to keep track of index in listbox items.

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


Please Help Members By Posting Answers For Below Questions

What is difference between entity framework and ado.net?

894


What is the hierarchy of data in databases?

909


Describe briefly an ADO.NET Dataset ?

1026


How do you merge 2 datasets into the third dataset in a simple manner?

960


Explain the difference in an abstract class and an interface?

892


What is ado.net explain with diagram?

932


What is the significance of CommandBehavior.CloseConnection ?

1117


Explain which name space is used to get assembly details?

932


How to retrieve the user id which is provided while windows authentication?

1065


What is a control toolbox?

923


Which namespaces are used for data access?

1147


What are ado.net objects?

1038


What is connection string?

967


How to bind the controls(best practice) comboboxes to the data in the dataset?

1022


Define different execute methods of ADO.NET command object ?

1029