Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Hide Events from Intellisense
 

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 ?

MigrationUser 1  Wednesday, March 19, 2003 5:14 AM
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.
MigrationUser 1  Tuesday, March 25, 2003 6:29 PM
It's like you say Shawn

Thanks

Dion Heskett
MigrationUser 1  Thursday, March 27, 2003 11:44 AM

You can use google to search for other answers

Custom Search

More Threads

• Custom control displays differently in TabPage
• Windows Form Designer Fails to Load
• There is already a command handler for the menu command '5efc7975-14bc-11cf-9b2b-00aa00573819 : 17'
• cloning a listview
• Object- Oriented Programming Problem
• Retrieving Form Reference from Component
• Custom textbox designer
• Custom dialog
• Adding code to VS 2005 generated windows form.
• Problems with Office XP Web Components (OWC) on Visual Studio .NET