Can I expose the events for a windows control that has the BrowsableAttribute set to false?


hi,

i'm getting speed in c# , wondering, there way expose events windows control have browsableattribute set false? example gotfocus event of textbox? find annoying microsoft has arbitrarily decided can't trusted it.

 

thanks

dave


david pantaleoni

you can use event want - browsable attribute hides designers (and intellisense).

 

however, in code, can subscribe still , handle normal:

      textbox1.gotfocus += this.textbox1_gotfocus;        void textbox1_gotfocus(object sender, eventargs e)     {         // thing     }  



reed copsey, jr. - http://reedcopsey.com
if post answers question, please click "mark answer" on post , "mark helpful".


Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

RFC_ERROR_SYSTEM_FAILURE with SAP ECC 6 Unicode

C# System.Data.Common DbCommand and getting Datasets from Oracle