.net - Raising external object's events in C# -


If verbs is a panel, can i see click its mother -Papa event? At the moment I have this code, but click event is not a method, so this code is invalid.
Do anyone know how I can get it?

  actions.Click + = Representative (Object Sender, EventArgs E) {((Sender)). Parent.Click (); }  

direct C # event do not raise second < Code> class (even if it is public ). You can provide a method (with a sufficient access modifier) ​​that raises event on your behalf and calls that method to other class .

By the way, it is possible with reflection, but I think a dirty hack.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -