Hi,
You could try something like this.
Public Class Form2
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Private Shared instance As Form2
Public Shared ReadOnly Property DefInstance() As Form2
Get
If instance Is Nothing Then instance = New Form2
Return instance
End Get
End Property
End Class
To use
Dim frm As Form2 = Form2.DefInstance
frm.ShowDialog()
Ken
------------------
"Sumit" <vi*******@hotmail.com> wrote in message
news:3e****************************@phx.gbl...
Can any one Please tell me how to write a code to make a
form that has only one instance. Like in Visual Basic 6.0