Originally posted by Roomi7 Thanks alot it's work
Can you tell me what is that mean ...
Dim frm2 As New Form2()
this means :
basically , you're instantiating a new object to have full control on it which inherits almost all the methods ,classes ,properties of that object.
(acually I'm lost when it comes to teaching ....hate palying a teacher role . lol
got it ??
check this link for more info about it .....
summary :
you are creating new object which is "frm2" from the current object which is "Form2". frm2 is almost exactly the same as form2.
VS.NET is based on this technology (inheritance) . all objects(controls , classes,methods) are inherited from their parents or Classes.
I'm afraid you're not getting it though..
Well , try something like this
dim frm as form2 . what result would you get ? ofcourse stupid error msg saying "Object Reference not set to an instance of an object".Then you have to use keyword "New" to instantiate new object.
so you can't use that object itself or otherwise you can make an exact copy of it for unrestricted uses(with no errors). got it