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 DataReader class do in ADO.NET ?

1024


What is the role of clr?

891


What are the important features of ado.net 2.0?

1018


What are the advantages of using datalist?

960


What is a data control clerk?

979


What is a control toolbox?

902


How can I retrieve two tables of data at a time by using data reader?

932


How can we load multiple tables in to dataset?

1029


What is aggregating data ?

909


What are the ado.net objects?

888


What is ado.net in vb net?

874


What is the default provider in ado.net?

907


What is the difference between executequery and executenonquery?

867


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

1049


What is a dynaset in access?

1015