title: WYSIWYG html editor query
body: <p>I am in the process of creating a simple WYSIWYG HTML editor to enable the users of my application to design simple HTML emails.</p>
  
  <p>At the moment I have decided to use the web browser control with MSHTML to enable me to edit what is displayed. I have a tool bar which holds all of the relevant buttons, bold, underline, etc.</p>
  
  <p>I need a way to check if the current block has any formatting so the correct state can be displayed on the buttons in the tool bar. I tried to add an event handler to the IHTMLDocument to fire when the mouse is moved or the arrow keys are pressed, however, this stopped the web browser from taking any input.</p>
  
  <p>Is there a simpler way to achieve this goal?</p>