how to make only one ohbject of a form at a time in vb,net
I am wokring on a vb.net project and in that I have two forms.
One is mdi parent form and second is the child of first form.
So when I open the second through first form using menus.
I want that if the second form is alrady open then a message shuld come that says like the form is already open.
So how to do it
In samiple words I want only insatance of second form at a particular time.
And the seond instance should make when the firt one is distroed.
And also I have this code and I want to know whcih class should I import in my class to use this code below
dim app as SQLDMO.Application
app = new SQLDMO.ApplicationClass
dim names as SQLDMO.NameList
names = app.ListAvailableSQLServers()
for i = 1 to names.Count