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 is microsoft ado?

0 Answers  


How to pass values into a datatable?

0 Answers  


Which is the best method to get two values from the database?

0 Answers  


What is datatable?

3 Answers  


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

7 Answers   Honeywell, Ksb,


Describe briefly an ADO.NET Dataset ?

0 Answers   Siebel,


how to keep track of index in listbox items.

2 Answers  


i making a project using windows application c#, i want to show user name, password, and one button login. i wanna make it with sealed class .how its possible . when i clicked my login button all project should be open. pls cleare me.

1 Answers  


What provider ADO.net use by default ?

5 Answers   Accenture, BirlaSoft, Wipro,


Define Execute Reader?

0 Answers  


What is method to get XML and schema from Dataset? getXML() and get Schema ()

0 Answers  


What is shadow copy?

0 Answers  


Categories