A
able
Dear friends
In form1 I have declared an EventHandler like this:
Public Event DoeIt As EventHandler
Form2 is than loaded as modal from form1. From form2 I have to pass an
AddHandler to EventHandler "DoeIt". To do so the coding is like this:
Dim myForm1 as New Form1
AddHandler myForm1.DoeIt, AdressOf Me.This_DoeIt
Due to form1 already is open, the statement "Dim myForm1 as New Form1"
causes some trouble. Is it in this case a solution to refere to the "DoeIt"
not declaring a new form1?
In form1 I have declared an EventHandler like this:
Public Event DoeIt As EventHandler
Form2 is than loaded as modal from form1. From form2 I have to pass an
AddHandler to EventHandler "DoeIt". To do so the coding is like this:
Dim myForm1 as New Form1
AddHandler myForm1.DoeIt, AdressOf Me.This_DoeIt
Due to form1 already is open, the statement "Dim myForm1 as New Form1"
causes some trouble. Is it in this case a solution to refere to the "DoeIt"
not declaring a new form1?