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 are basic methods of dataadapter?

974


What is sql command in ado net?

960


How to check if the Dataset has records ?

1008


What is sqlconnection and sqlcommand?

1124


Explain how to find the given query is optimised one or not?

1034


What are the advantages and disadvantages of using datalist?

1085


What are the benefits of ADO.NET?

1121


What are the different layers of ado.net?

1083


What are the types of databinding?

993


How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?

981


What is ole in excel?

942


What is executenonquery ado.net?

932


Which database is the ado.net sql connection object designed for?

1050


Which is the feature of ado.net?

1014


Explain the overview of ado.net architecture?

1042