Hi,
I have two forms: FormA and FormB.
In formA I create an instance of formB like this:
Private withevents frmB as FormB 'in the declare
Set frmB = new FormB
' Now, in formA I will have access to an FormB event
In formB
Event pass(byVal state as boolean)
' Somewhere in the form I will raise that event
RaiseEvent pass(True)
What happens is that, in FormA I will have access to FormB pass event ... In the other hand, vb will not give an error message when the debugger read the raise event statement.
However, despite the raise statement don´t give me any error, it will not "call" the procedure in formA that handles that event
Anyone knows why?
Sergio Oliveira
I have two forms: FormA and FormB.
In formA I create an instance of formB like this:
Private withevents frmB as FormB 'in the declare
Set frmB = new FormB
' Now, in formA I will have access to an FormB event
In formB
Event pass(byVal state as boolean)
' Somewhere in the form I will raise that event
RaiseEvent pass(True)
What happens is that, in FormA I will have access to FormB pass event ... In the other hand, vb will not give an error message when the debugger read the raise event statement.
However, despite the raise statement don´t give me any error, it will not "call" the procedure in formA that handles that event
Anyone knows why?
Sergio Oliveira