D
DaveG
Hi
I posted this to the .Net general newsgroup and got a reply from "Morten"
who has given me an answer but in C# a language I have never worked with.
VB.Net is still very new to me, I was hoping someone here in the VB.net
group could help me a little. I have copied the posts to here.
Morten has given me a code snippet in C# but where do I use it and what is
the VB.Net equivalent.
Thanks DaveG
''''''''' Orig Post ''''''''''''''
Dave, overloading a constructor is done the exact same way, although I'm
not sure how the VB syntax is. Store the Form1 reference for later use.
private Form1 myParent;
public Form2(Form1 f)
{
myParent = f;
}
then simply call
myParent.MethodOrSimilarInForm1()
whenever you need.
I posted this to the .Net general newsgroup and got a reply from "Morten"
who has given me an answer but in C# a language I have never worked with.
VB.Net is still very new to me, I was hoping someone here in the VB.net
group could help me a little. I have copied the posts to here.
Morten has given me a code snippet in C# but where do I use it and what is
the VB.Net equivalent.
Thanks DaveG
''''''''' Orig Post ''''''''''''''
Thanks Morten
Now the problem is I have used the overload in normal funtions and subs
but never with the constructors, so now I'm a little lost, I understand
the reasons for the overload..... so the New form2(Me) will be excepted
bur how to implement it is where I am stuck......
Dave, overloading a constructor is done the exact same way, although I'm
not sure how the VB syntax is. Store the Form1 reference for later use.
private Form1 myParent;
public Form2(Form1 f)
{
myParent = f;
}
then simply call
myParent.MethodOrSimilarInForm1()
whenever you need.