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

What are the uses of Stored Procedure?

0 Answers  


Can I use One Data Set for More than one Data Adapter?

6 Answers  


On ODP.net ?

1 Answers   MMTS,


What?s the role of the DataReader class in ADO.NET connections?

7 Answers   Honeywell, Ksb,


How to pass values into a datatable?

0 Answers  






Define the executescalar method?

0 Answers  


How to add an aggregate column?

0 Answers  


Which is better ole db or odbc?

0 Answers  


What are the Features and disadvantages of dataset

0 Answers   Microsoft,


Which object holds only data and does not interact with data source?

0 Answers  


What is Serialization in .NET? what are the types of Serialization?

0 Answers   Arigo Infotech,


How to create data relations?

0 Answers  


Categories