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 executenonquery ado.net?

937


How do you update a dataset in ado.net?

1036


Define data adapter?

973


What is ole in vb?

908


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

1119


What is an ADO.Net?

1002


Define executenonquery?

920


What is ole db query?

997


How do I delete a row from a DataTable?

1178


How can we add/remove row's in "datatable" object of "dataset"?

1027


What is Data view?

1088


What is data adapter in ado.net with example?

1052


What are the ado.net connection pooling parameters?

992


What is the full form of ado.net?

995


Which is better entity framework or ado.net?

1061