R
Ronny Van Assche
Hi,
I am working with an Mdiform and several Childforms who are loaded
dynamically with reflection.
Every time a child is getting activate i must reinitialize the menu.
(i think) This is something to handle in the MdiChildActivate event of the
MdiForm.
My problem now is to get the initial properties of the active child.
When i try to cast the "e" arguments to
((System.Windows.Forms.Form)e).GetHashCode() it gives me a compile error
"Cannot convert type 'System.EventArgs' to 'System.Windows.Forms.Form".
Now the question. What is the correct cast for this?
Kind regards,
Ronny
I am working with an Mdiform and several Childforms who are loaded
dynamically with reflection.
Every time a child is getting activate i must reinitialize the menu.
(i think) This is something to handle in the MdiChildActivate event of the
MdiForm.
My problem now is to get the initial properties of the active child.
When i try to cast the "e" arguments to
((System.Windows.Forms.Form)e).GetHashCode() it gives me a compile error
"Cannot convert type 'System.EventArgs' to 'System.Windows.Forms.Form".
Now the question. What is the correct cast for this?
Kind regards,
Ronny