Login    
 
 
 
 
Text/HTML
  
You are here :: Blogs Saturday, May 19, 2012

Search
Note: This uses the internal blog search engine. The Google search engine is also available at the top of the page.
  
Disclaimer

Please review the site disclaimer before downloading or using content found on this site

  
Categories
  
DEVSHED Blog
As always, I welcome your comments!
Jul 12

Written by: Steve Gray
7/12/2010 10:44 AM  RssIcon

This code will open a form once, but only once. If the form is already open it will bring that window to the top

    Sub openform(ByVal frm As Form)
        Dim f As Form
        For Each f In Me.MdiChildren
            If f.Name = frm.Name Then
                'the form is already open
                Exit Sub
            End If
        Next
        frm.MdiParent = Me
        frm.Show()
    End Sub

Tags:
Categories:
As always, I welcome your comments!
  
 
 
Home | Products | Blogs | Contact Us | Links | God's Plan
Privacy Statement | Terms Of Use
 
Copyright 2011 by Devshed.us