If i have multiple lines in a listbox...and on double clicking on a line in the listbox , the corresponding line in another text box will be highlighted...
any idea??
Dealing with List Boxes in C# ??
In the first one, you can get the selected index with listBox1.SelectedIndex or listBox1.SelectedIndices and when things change, you'll have a SelectedIndexChanged event to handle. From there, you can select the items in the second list box using its listBox2.SelectedIndex property. This is a read/write property so you can get the first one and write it to the second.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment