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

1028


What is ado.net tutorial?

997


Explain the role of data provider in ado.net?

1038


What are the differences between OLEDB and SQLClient Providers?

1240


What is ole used for?

983


What does datareader object do?

1058


Explain the architecture of ado.net?

1129


Define partial class?

1026


Which object of ado contains datarow datacolumn collection?

1012


Explain the two fundamental objects in ado.net?

1068


What is ado.net in mvc?

976


How to add an aggregate column?

1064


Does executenonquery return a value?

1004


Which is the feature of ado.net?

1066


What is sqlconnection and sqlcommand?

1199