VB: form name in variable - TechRepublic
Question
March 19, 2007 at 12:51 PM
heikodewal

VB: form name in variable

by heikodewal . Updated 19 years, 3 months ago

During runtime I get the name of the form that has to open in a string variable. How do I open this form?

example:
dim tmpForm as string
tmpForm = xxxx ‘ Given during runtime
xxxx.show() ‘ xxxx must be a form object here

So the question is how to create a object of the form when you know the formname during runtime?

This discussion is locked

All Comments