Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Do we have any way to add a scroll bar between two list boxes so that anything whcih changed in the one list view will show in to the other list view also means shows the differences in each list view at a time?
Posted
Comments
Kethu Sasikanth 11-Jan-12 15:22pm    
Do you want to control the scrolling of 2 list boxes using one scroll bar? What about the "differences" you are talking about, what do you mean by that?
BillWoodruff 11-Jan-12 20:34pm    
You really need to clarify this question. The way I read it I think you are describing two ListBoxes whose content may be different at any one time ? Or, you could read this question as: if I change item5 in ListBox1 to be named item6: and ListBox2 has an item named item5: then I want to change the item in ListBox2 to be the same object.

If you are talking about two identical ListBoxes (in terms of content) then the problem you are talking about is synchronized scrolling which should not be hard to do.

When you speak of "show the differences:" you need to explain that: do you mean you want any item in ListBox2 that is not in ListBox1 to somehow highlighted, selected ... or ?
wizardzz 11-Jan-12 21:37pm    
I think I know what the OP is after. Think of a control like the one Araxis Merge uses. 2 text windows, one slider.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900