Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2005

Tip: Looking for answers? Try searching our database.

Scrolling in a list box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Z - 20 Sep 2005 04:05 GMT
Hi,

I have two list boxes of the same size and the same number of items in them.
The number of items is big, so to accommodate them the list boxes display
vertical scroll bars.
I want to synchronize the vertical scrolling of these two list boxes, so
when one of them is scrolled by the user, the other is scrolled as well so
they are both at the same scroll position.
How can I do this?
I looked for some sort of scroll event that would tell me the position of
the scroll bar but I could not find anything. There was a similar example in
"Programming VB6" by Francesco Balena, but a "Scroll" event is used there,
which we dont have in .NET ( at least I cant find it)

Thanks
Pan Wen - 20 Sep 2005 13:28 GMT
You can call listBox2.SetSelected(index,true) to scroll a list box

Pan
Dotnetskin: skin component for .NET Windows Forms
http://www.dotnetskin.net

> Hi,
>
[quoted text clipped - 13 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.