• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

Load Form or Classes dynamic

Is it possible to Load Forms or Classes dynamic?

I want to Load a Form which name is stored in a parameter,

With LoadObject and Set, ...

Thanks for Help
0
GuidoBartels
Asked:
GuidoBartels
1 Solution
 
caraf_gCommented:
In VB6, yes:

'Try this little example
Forms.Add "Form1"
Forms(Forms.Count - 1).Show

You can load classes dynamically if they're in a separate DLL, because then you can use the CreateObject syntax to instantiate the class.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now