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

Which namespaces are used for data access?

1181


What is a string variable?

893


Explain the namespaces in which .net has the data functionality class.

1060


What is a column variable?

921


How to create dynamic gridview?

1011


Which is better entity framework or ado.net?

1029


What is ado.net explain with diagram?

947


What are the ado.net components?

1008


What is ole data type?

893


What is ado.net components?

944


How to pass values into a datatable?

1111


What does ado stand for?

890


How to create data relations?

977


What are basic methods of dataadapter?

954


How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

1005