Synchronized Scrolling between C# applications

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roe

    Synchronized Scrolling between C# applications

    What is the best way using C# .NET 1.1 to have two (or more)
    applications perform a "synchroniz ed" 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

    #2
    RE: Synchronized Scrolling between C# applications

    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

    "Roe" wrote:
    What is the best way using C# .NET 1.1 to have two (or more)
    applications perform a "synchroniz ed" 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.
    >
    >

    Comment

    • Roe

      #3
      Re: Synchronized Scrolling between C# applications

      So, is it possible to use windows messaging via .NET? That was
      something I was wondering about.


      Ciaran O''Donnell wrote:
      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
      >
      "Roe" wrote:
      >
      What is the best way using C# .NET 1.1 to have two (or more)
      applications perform a "synchroniz ed" 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.

      Comment

      • Dave Sexton

        #4
        Re: Synchronized Scrolling between C# applications

        Hi,

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

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

        --
        Dave Sexton

        "Roe" <janine.roe@gma il.comwrote in message
        news:1163781435 .908745.72090@h 54g2000cwb.goog legroups.com...
        So, is it possible to use windows messaging via .NET? That was
        something I was wondering about.
        >
        >
        Ciaran O''Donnell wrote:
        >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
        >>
        >"Roe" wrote:
        >>
        What is the best way using C# .NET 1.1 to have two (or more)
        applications perform a "synchroniz ed" 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.
        >
        >
        >

        Comment

        Working...