G
Guest
I am new to the .Net environment, so please bear with me.
I am passing a form object (e.g. formA) to an existing form (e.g. formB) by setting a property value defined in formB to hold the formA object. Please keep in mind that formB is defined in a separate library project.
I then display formB. Once formB is displayed, I have code in a double click event procedure in formB to display formA by getting the form object throught the property definition described above.
The code works perfectly fine initially displaying formA; however if formA is closed, I cannot redisplay it from the double click event procedure. I guess that by closing formA, I'm apparently destroying the object that I'm getting from the formB's property value. I presume that the object being set in the property value is a reference to when formA was originally instanciated and not a copy of formA.
Is there a way of making a copy of formA from within formB? Or is there a way re-instanciating formA from within formB? Please keep in mind that formB is in a separate library project and as such doesn't know about the formA type. As such I can't simply say:
Dim formA as New formB.
Any help would be incredibly appreciated.
Thanks
Ned
I am passing a form object (e.g. formA) to an existing form (e.g. formB) by setting a property value defined in formB to hold the formA object. Please keep in mind that formB is defined in a separate library project.
I then display formB. Once formB is displayed, I have code in a double click event procedure in formB to display formA by getting the form object throught the property definition described above.
The code works perfectly fine initially displaying formA; however if formA is closed, I cannot redisplay it from the double click event procedure. I guess that by closing formA, I'm apparently destroying the object that I'm getting from the formB's property value. I presume that the object being set in the property value is a reference to when formA was originally instanciated and not a copy of formA.
Is there a way of making a copy of formA from within formB? Or is there a way re-instanciating formA from within formB? Please keep in mind that formB is in a separate library project and as such doesn't know about the formA type. As such I can't simply say:
Dim formA as New formB.
Any help would be incredibly appreciated.
Thanks
Ned