kanabalize
October 27th, 2009, 05:20 AM
Hello,
Hello i have form 1 which will raise an event for form2 after doing some calculations....
My question is: i know how to raise an event in form2 and then write the sub in form1 but i cannot do the reverse... how can i do this in reverse???
i cannot raise the event sub in form2 is not responding..... how can i overcome this??
Example:
form1:
Public Class Form1
Event test()
.
.
.
RaiseEvent test()
.
.
.
End Class
form2:
Public Class Form2
Dim WithEvents f As New Form1()
Private Sub f_test() Handles f.test
msgbox("HELLO WORLD")
End Sub
End Class
it is not working....
Pls Help
Hello i have form 1 which will raise an event for form2 after doing some calculations....
My question is: i know how to raise an event in form2 and then write the sub in form1 but i cannot do the reverse... how can i do this in reverse???
i cannot raise the event sub in form2 is not responding..... how can i overcome this??
Example:
form1:
Public Class Form1
Event test()
.
.
.
RaiseEvent test()
.
.
.
End Class
form2:
Public Class Form2
Dim WithEvents f As New Form1()
Private Sub f_test() Handles f.test
msgbox("HELLO WORLD")
End Sub
End Class
it is not working....
Pls Help