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 / Languages / C# / November 2006

Tip: Looking for answers? Try searching our database.

Synchronized Scrolling between C# applications

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roe - 17 Nov 2006 15:07 GMT
What is the best way using C# .NET 1.1 to have two (or more)
applications perform a "synchronized" scrolling?  These applications
will all be C# .NET and will be on the same machine.  The effect I need
to create is if one program enables this "sync" feature, other
instances of this application will scroll in sync while the base one's
scroll bar is moved.  Is remoting the best way to do this?  Or is there
another way?  I'm just concerned about the amout of messages that occur
on a scroll event.
Thanks in advance.
Ciaran O''Donnell - 17 Nov 2006 15:38 GMT
If this is only supposed to sync one way then it would be possible to on
scroll, send a windows message to the other application to cause it to scroll
too. I'm not sure exactly what the code would look like but it sounds
reasonable to me. I'm sure there are some people more familiar with Win32 to
shed some light.

Ciaran O'Donnell

> What is the best way using C# .NET 1.1 to have two (or more)
> applications perform a "synchronized" scrolling?  These applications
[quoted text clipped - 5 lines]
> on a scroll event.
> Thanks in advance.
Roe - 17 Nov 2006 16:37 GMT
So, is it possible to use windows messaging via .NET?  That was
something I was wondering about.

> If this is only supposed to sync one way then it would be possible to on
> scroll, send a windows message to the other application to cause it to scroll
[quoted text clipped - 13 lines]
> > on a scroll event.
> > Thanks in advance.
Dave Sexton - 17 Nov 2006 17:46 GMT
Hi,

It is possible, but you need to use one of the SendMessage or PostMessage API
functions, AFAIK:

[DllImport("user32.dll")]
public static extern int SendMessage(IntPtr window, uint message, IntPtr
wparam, IntPtr lparam);

Signature

Dave Sexton

> So, is it possible to use windows messaging via .NET?  That was
> something I was wondering about.
[quoted text clipped - 18 lines]
>> > on a scroll event.
>> > Thanks in advance.

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.