Hi,
I'm using VS.NET 2003. I've a small problem using the OOP concepts. I want
to know before creating an instance of a class, to check whether any
instances earlier created exists.
Now for example. I'm calling a method to create a Instance of Form, and
Before creating an object instance of the form, I want to make sure that
there isn't any object instances created earlier which still exists and want
to know how to destroy that previous Instance.
example:
(assume that TForm is a base class)
Dim objForm1 as New TForm
If not any previous object instances of TForm exists then
objForm1.ShowDialog
else
Destroy the previous Instance
How can I write this logic as VB.NET code?????
--
Mohammed Hifni Shahzard Nazeer,
JB Securities Pvt. Ltd.,
Colombo.