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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

SQL Server 2008 - High Memory Usage

Azure DocumentDB Owner resource does not exist