Notes, Tricks and Tips on VB.NET
The following code will keep a form from opening twice in an MDI environment:
Sub openform(ByVal frm As Form)
Dim f As Form
For Each f In Me.MdiChildren
If f.Name = frm.Name Then
Exit Sub
End If
Nextfrm.MdiParent = Me
frm.Show()
End Sub
About Steve Gray
Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.