title: C# Console App + Event Handling
body: <p>Hey all.  I'm trying to see about handling events in a console application.  I would prefer to not use silent WinForms (though I understand that that's one way) to do it.  I've read over a similar question and its response.  See response text below (<a href="https://stackoverflow.com/questions/687146/webbrowser-control-console-application-events-not-firing/687165#687165">link</a>):</p>
  
  <blockquote>
    <p>The basic requirement of an STA thread
    is that it needs to run a message
    pump. In Windows Forms, you can use
    Application.Run. Or you could write
    the message pump by hand, using
    user32!GetMessage &amp; DispatchMessage.
    But it's probably easier to use the
    one in WinForms or WPF.</p>
  </blockquote>
  
  <p>What the basic structure of a program that uses "user32 -> GetMessage" &amp; "user32 -> DispatchMessage"?</p>