473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Synchronize Listview Scrollbars

Hello,

i have two listviews next to each other on a form. I would like to
synchronize both vertical scrollbars of the two listviews with one scrollbar
(for example VScrollBar). How can I do that?

Thank you very much.
Oct 16 '08 #1
1 5521
You can use 'ScrollToVerticalOffset' method(in wpf Scroll Viewer).
Believe the following code snippet will help you

private void ScrollViewer1_ScrollChanged(object sender, ScrollChangedEventArgs e)
{
ScrollViewer2.ScrollToVerticalOffset(e.VerticalOff set);

}

Happy Coding
Sree
Oct 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Kovan A. | last post by:
since i couldnt find anyway to scroll a listview having disabled the scrollbars, i am left with no choice but to make the current scrollers bigger any leads as to which beast i am up against for...
5
by: Frank Rizzo | last post by:
I reload the items in the listview on a regular schedule (i.e. clear the listview, then load it up with fresh values). I want add a convinience to the user whereby my application remembers the...
2
by: Mark | last post by:
I have basically a 2 part question: 1) is there a way to have a listview that can scroll, but hide the scrollbars. I know that sounds odd, but this is a touch screen app and there are "scroll...
1
by: TomasFloyd | last post by:
Hi Everyone I'm using the standard ListView control of VS 2003. I would like to know if there is a way to catch the event of the scrollbars attached to a ListView being 'scrolled' or 'clicked'?...
2
by: ohadasor | last post by:
Hi All, I have a ListView control, and I need it to have only vertical scrollbar, not horizontal. How can I do that? The only way I found to control its scrollbars is using ListView.Scrollable,...
0
by: Sanjib Biswas | last post by:
Hi, I would like to know how to synchronize the vertical & horizontal scrollbars in 2 TreeView to move up & down, left & right synchronously. Noticed that TreeView does not have any scroll event...
0
by: inandout | last post by:
Hi, I was wondering if anyone can help me with this. I have a listview that is specified to a size of: 348W x 308H When items are added to it, no problems. However when items continue to be...
3
by: Dilip | last post by:
I inherited an owner drawn control that subclasses the Windows Forms ListView control to provide additional functionalities. I wanted to detect the presence of the Vertical scrollbar so that I can...
1
by: =?Utf-8?B?YW5kaSByaWNrZW5iYWNo?= | last post by:
Hello, i have two listviews next to each other on a form. I would like to synchronize both vertical scrollbars of the two listviews with one scrollbar (for example VScrollBar). How can I do...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.