Ahhh, what you are talking about "parent<-->child" relationship between
forms is not the same as inheritance. In OOP, inheritence refers to the
fact that the methods, properties and member variables of a class are
"inherited" by the new class at compile time, whereas the Window Parent <->
Child relationship purely refers to the fact that one recieves messages from
the other. Your Form1 will contain a reference to your Form2 and your Form2
will contain a reference (parent) to your Form1. Both of the classes you
are using are derived from Windows.Forms, not from each other.
"Saumitra" <Sa******@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
Hi
I am new to VB.NET and I am trying to figure out how to exchange data
between 2 forms based on parent-child relationship between 2 forms. Form2
is
child of form1. In form1.vb, I am doing
Dim t As New Form2
t.Show()
This is really strange to me because by OOPS, a base class has no
knowledge
of the child class and should be able to instantiate a child class object.
Can someone explain this? Also, can someone suggest a better way to
exchange
data between 2 forms.
Regards
Saumitra