how to keep track of index in listbox items.

Answers were Sorted based on User's Feedback



how to keep track of index in listbox items...

Answer / prasad

please send me the answer.
this is used in sendig items from one list box to another
listbox with a single click.
if the items r more.

Is This Answer Correct ?    3 Yes 1 No

how to keep track of index in listbox items...

Answer / 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

More ADO.NET Interview Questions

Command objects uses, purposes and their methods.

0 Answers  


What is full form of ado?

0 Answers  


WHAT IS DIFF B/W VIEWS AND STORED PROCEDURE

2 Answers  


What is ole used for?

0 Answers  


What is ado recordset?

0 Answers  






Diff. b/w DataReader and DataSet?

8 Answers   Avon, Value Labs,


What is dataset and datatable in ado.net?

0 Answers  


Describe briefly an ADO.NET Dataset ?

0 Answers   Siebel,


What are the three Ado objects?

6 Answers   Microsoft, StarSoft,


How to connect and retrieve data from database using dataset

0 Answers  


List the 4 common ado.net namespaces?

0 Answers  


How many commands does the oledbcommand takes?what are they?

2 Answers  


Categories