magozeta
New member
- Joined
- Jun 4, 2012
- Messages
- 2
- Programming Experience
- 1-3
Hello!
I explain what I need . I hope I'll be clear.
I have 3 classes in 3 separate dll.
1) Class "BaseForm" that inherits from System.Windows.Forms.Form with "MyEvent" declared as Public Event ()
2) Class "MyForm" which inherits from "BaseForm"
3) class "MyClass" which has a public property "ExternalObject" of "BaseForm" type (the private variable is declared WithEvents)
I make the following steps:
1) intercept the Form LOAD event in "BaseForm"
- Instance the class "MyClass", Assign public property "ExternalObject" = Me
- I do a RaiseEvent "MyEvent" in "BaseForm"
2) "MyEvent" is triggered BEFORE in "MyForm"
3) AFTER "MyEvent" is triggered in "MyClass".
How Can I Raise event Befor in "MyClass" and then in "MyForm"?
thanks
I explain what I need . I hope I'll be clear.
I have 3 classes in 3 separate dll.
1) Class "BaseForm" that inherits from System.Windows.Forms.Form with "MyEvent" declared as Public Event ()
2) Class "MyForm" which inherits from "BaseForm"
3) class "MyClass" which has a public property "ExternalObject" of "BaseForm" type (the private variable is declared WithEvents)
I make the following steps:
1) intercept the Form LOAD event in "BaseForm"
- Instance the class "MyClass", Assign public property "ExternalObject" = Me
- I do a RaiseEvent "MyEvent" in "BaseForm"
2) "MyEvent" is triggered BEFORE in "MyForm"
3) AFTER "MyEvent" is triggered in "MyClass".
How Can I Raise event Befor in "MyClass" and then in "MyForm"?
thanks