title: Horizontal scroll with c#
body: <p><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms646260%28v=vs.85%29.aspx" rel="nofollow">This link</a> contains helpful information on how to use the mouse_event function located in user32.dll</p>
  
  <p>Based on that link I know that I could scroll by doing something like:</p>
  
  <pre><code>        [DllImport("user32.dll")]
          public static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo);
  
  
          public void Scroll(){
                // this will cause a vertical scroll
                mouse_event(0x0800, 0, 0, 500, 0);
          }
  
          public void Click(){
                // this will cause a left mouse click
                mouse_event(0x0002, 0, 0, 0, 0);
                Thread.Sleep(1);
                mouse_event(0x0004, 0, 0, 0, 0);
          }
  
          // etc...
  </code></pre>
  
  <p>anyways if  you look at that link, it does not contain the int value for MOUSEEVENTF_HWHEEL. I will like to be able to use the horizontal scroll. How can I use the move_event to create a horizontal wheel movement?</p>