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

Explain the difference between data reader and data set?

0 Answers  


How to create dynamic gridview?

0 Answers   MCN Solutions,


Define data adapter?

0 Answers  


What is the difference between executequery and executenonquery?

0 Answers  


What is the role of clr?

0 Answers  






What are the steps in connecting to database?

3 Answers   IBM, Microsoft,


feature of ADO.Net

11 Answers   Wipro,


Differnces between oracle 9i and sql server?

2 Answers   College School Exams Tests, Microsoft,


What is shadow copy?

0 Answers  


Where is adodb dll located?

0 Answers  


How can we serialize the dataset object?

0 Answers  


What are the ado.net components?

0 Answers  


Categories