473,405 Members | 2,310 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,405 software developers and data experts.

Synchronous Scroll

759 512MB
Hello !

In a form I have 3 list boxes, based on the same table.
I like to use only one of them to scroll (using the scroll bar or the mouse wheel) and the others two must scroll (automatic) synchronous. I wish to show the same area of records, in all list boxes, at the same time.

Any ideas ?

Thank you !
Nov 1 '11 #1
10 3164
ADezii
8,834 Expert 8TB
  1. Why would you have 3 List Boxes based on the same Table?
  2. Does each List Box have exactly the same Number of Records?
  3. What are the Names, RowSources, etc. for each List Box?
Nov 1 '11 #2
Mihail
759 512MB
Thank you for reply, ADezii.

1) I have a lot of information on my database. A lot of tables and a lot of queries with calculations. I use a make-table query to put all this information together. Then I define that 3 list boxes to show this information sorted as I need. I play with the column numbers and visibilities to show, in each list box what I wish.

2) Yes.

3) The names are in my language, of course. For now lets say that the names are lst1, lst2 and lst3. The row source is the same for all list boxes: MyTable.

................

I wish to scroll only lst1 and, automatic, lst2 and lst3 must scroll synchronous (if it is possible). I search for a scroll event (like in VB) but I can't find it. Maybe you (all) have a solution for that.

Thank you again.
Nov 1 '11 #3
NeoPa
32,556 Expert Mod 16PB
Why not have all the data in separate columns of the same ListBox control?
Nov 2 '11 #4
Mihail
759 512MB
Hello NeoPa. Thank you for reply.
It is possible, of course, but...

First:
I have 7 columns per list. If I use a single list will be 21 columns and the user must scroll the screen to see the information.

Second (most important):
The information is logical grouped in each list box.

Note please that all three list boxes show information (properties) for the same item. It is the reason I like to scroll synchronous.
Nov 2 '11 #5
ADezii
8,834 Expert 8TB
The Listbox does not expose any Scroll() or Change() Events which lead me to believe that they cannot be Synchronized based solely on Scrolling. I have created a rather 'Rogue' Solution that Synchronizes 3 Listboxes based on the same Table (Orders of Northwind). The [OrderID] Field in each Listbox will prove that they are in Sync. Before I go on with my usual ranting as to how this was accomplished, I'll post the Demo that I created. If you are actually interested, or have any questions, please feel free to ask.
Attached Files
File Type: zip Synchronized Listboxes.zip (67.0 KB, 145 views)
Nov 2 '11 #6
Mihail
759 512MB
Thank you, ADezii for your effort.

But your list boxes don't seem to scroll synchronized.
If I focus one of them (by clicking) only THAT list box scroll, not all.

Is something I do wrong ?

I use 2007, but I think this is not a problem.
Nov 2 '11 #7
ADezii
8,834 Expert 8TB
They are Synchronized when the Horizontal Scroll Bar at the bottom of the Form is used.
Nov 2 '11 #8
Mihail
759 512MB
Sorry ADezii, but they aren't.

They are synchronized as selected rows. This can be a step forward but it isn't what I am looking for.

More: If the selected item (row) exceed the text box window, nothing happen. (Of course, the rows are selected but the user can't see that).

Thank you again for your interest.
I never think that a task as simple as this one (oops !!!) raise so big troubles.
Nov 2 '11 #9
NeoPa
32,556 Expert Mod 16PB
Mihail:
It is possible, of course, but...

First:
I have 7 columns per list. If I use a single list will be 21 columns and the user must scroll the screen to see the information.

Second (most important):
The information is logical grouped in each list box.
I find you second point quite inconsequential (as there are better ways than separate controls to handle that), but your first is compelling. Scrolling (horizontally) between your different sets of data would not be user-friendly :-(

Code could be used to ensure the same record is selected in each one, but handling the scrolling (fully) would require a change to the design of ListBox itself, which is built-in of course.

ADezii may be able to help with some look-alike functionality, which may be adequate.
Nov 2 '11 #10
NeoPa
32,556 Expert Mod 16PB
Mihail:
I never think that a task as simple as this one (oops !!!) raise so big troubles.
I'm surprised you'd make that mistake Mihail. Your English is obviously not great, but I can tell you're no fool. This would involve a complete redesign of the ListBox control type (I'm sure you checked out the available events before posting). I can see why most people might think it was an easy task, but I'm surprised that you did.
Nov 2 '11 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Noel | last post by:
Hi, I am a tad confused about if there are any benefits from using asynchronous vs synchronous network communication. As my example, I have been writing a dns lookup stack with a network...
1
by: Chris | last post by:
Hi. I have a ibrary I'm trying to use via javascript within IE. This library uses an asynchronous model where I call into a function and pass it a callback function as one of its arguments. My...
9
by: David | last post by:
Hello I'm testing the XMLHttpRequest object in Firefox and IE. The code below works well in IE and Firefox. It shows "1" when the string is a number and "0" when not. The page aspxTest.aspx only...
2
by: duncansinclair | last post by:
The following code works in IE, but in Forefox (1.0.7 & 1.5) the Asyncronous function (testA) works fine but the Synchronous one (testS) does not. It just doesn't work & I get no errors. ...
3
by: Pro1712 | last post by:
Hi, this may be a stupid question: How can I can call the DoWork-function of a BackgroundWorker synchronous? Or in other words: How can I extend the BackgroundWorker class with a function...
1
by: AECL_DEV | last post by:
Hello Everyone, Ive seen alot of people saying that the best way to AJAX Validate a form is through the submit button, because validation should be synchronous. Im wondering, is there any good...
5
by: HugeBob | last post by:
Hi All, I've got a question about Asynchronous vs Synchronous mode with the XMLHttpRequest object. What are the ramifications of using one mode vs the other? If the script uses Asynchronous...
0
ammoos
by: ammoos | last post by:
hi friends pls help me.. i got an assignment which i feel very difficult to me.. i dont have more knowledge about multi-threading in .net... the assignment details is below.... pls help me... i...
6
by: Simon | last post by:
Hi All, An experiment i'm doing requires requires a synchronous cross-domain request, without using a proxy. I wondered if anyone had any ideas to help me achieve this. Below is what I have...
1
by: BahatiSiD | last post by:
Hello! I have a class instance that fires events and they are handled in a form. I believe this kind of event is called trivial: public: delegate void CpuStepEventHandler(Object^ sender,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.