title: Knowing when in design mode
body: <p>From within a class library, I'd like to know if it is being accessed during design mode as opposed to normal runtime.</p>
  
  <p>I tried using System.ComponentModel.LicenseManager.UsageMode but it seemed to have a value of  Runtime even when I was editing a form.</p>
  
  <p><strong>UPDATE:</strong>
  To clarify, I want to know if I am in design mode not from within a component, but rather from within a separate class that happens to be called by other items from within a form or control. I have a Utility class which is being called indirectly from a control and it is there that I need to know if I am in design mode or not.</p>