Click to See Complete Forum and Search --> : Urgent! How to load forms dynamically using formname string


October 11th, 1999, 11:43 AM
I have a requirement to load forms using the formname string dynamically.
Please guide me.

Nadia

czimmerman
October 11th, 1999, 06:28 PM
You can load a form dynamically by using the Add method of the Forms collection, e.g.,

dim myFormName as string
'code to resolve myFormName
Forms.Add myFormName
'Show the newly loaded form
Forms(Forms.Count - 1).Show




Charles Zimmerman
http://www.freevbcode.com

Bruno
October 11th, 1999, 06:32 PM
See: http://www.codeguru.net/bbs/wt/showpost.pl?Board=vb&Number=7453&Searchpage=0&Limit=25