Link to home
Start Free TrialLog in
Avatar of glass_snake
glass_snake

asked on

Dynamically loading forms based only on a string

I have a combobox with form names in it.  I would like to take the text name of those forms, hit an event handler, and dynamically load the selected form.  Unfortunately, I keep getting stuck.  I'm looking for something along the lines of the code I wrote below (though obviously it doesn't actually work).

Thanks in advance for any help!


Dim x as string
x = "Form2"

Dim obj as object
obj = CType(obj, gettype(x)).ShowDialog
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

.NET version?

Bob

ASKER CERTIFIED SOLUTION
Avatar of drquan
drquan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of glass_snake
glass_snake

ASKER

Version 1.1.

Thanks, drquan, that did it!