title: C# dynamic design-time properties
body: <p>I would like to have a control that allows a property to be shown if another property's value is set to a specific value. The following is a much simplified example of what I would like:</p>
  
  <pre><code>public class CustomButton : Control 
  {
      private ButtonType _bType = ButtonType.OnOff;
      private Int32 _minPress = 50;   // 50 mS
  
      public ButtonType Button_Type
      {
          get { return _bType; }
          set { _bType = value; }
      }
  
      public Int32 Minimum_Press_Time // Only for momentary buttons
      {
          get { return _minPress; }
          set { _minPress = value; }
      }
  
  }
  public enum ButtonType 
  {
      Momentary,
      OnOff
  }
  </code></pre>
  
  <p>On adding CustomButton to a Windows.Forms form, the Minimum_Press_Time will only show in the Properties window if Button_Type is changed to ButtonType.Momentary.</p>
  
  <p>Is such a thing possible?</p>