Hide Events from Intellisense


Hi  how to remove event from inherited control (TextBox)

i have this attribute on the inherited control.
[System.ComponentModel.Designer(typeof(TextBoxDesigner))]

this on the event
[
Browsable(false),
EditorBrowsable(EditorBrowsableState.Never)
]

new public event System.EventHandler TextChanged;

and this for my designer
 
 protected override void PostFilterEvents(System.Collections.IDictionary
events)
   {
    events.Remove( "TextChanged");
   }
 }

yet it still displays in Intellisense can anybody put some light on this 



Answer this question

Hide Events from Intellisense

  • Cerasti

    That should work -- but I think it will only do so from an external assembly.  To test this, add another project to your solution, add a reference to the current project and see if you see the event there.
  • mmadsen

    It's like you say Shawn

    Thanks

    Dion Heskett

  • Hide Events from Intellisense