Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleDisplay a form using its name
Keywordsform, display, form name
CategoriesTips and Tricks, Controls
 
Thanks to Yang Dong-Cheol.

Use the Forms collection's Add method to add a form with the given name. Then show the new form.

 
Private Sub cmdShowForm_Click()
Dim frm As Form

    Set frm = Forms.Add(txtFormName.Text)
    frm.Show
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated