I have a lot of forms in my project, and several programmers working on it. I have one form which lists all the forms in the project. (I read the .vbproj file and parse the .resx file names.)
What I am looking for is code that will let me create an instance of the form from the string name that I have, something like:
dim strName as string
dim f as form
strName = "frmMyForm"
f = new ctype(form, strName)
of course this doesn't work because ctype can't convert a string to a form, but this shows what I am attempting.
Can someone show me how to do it right?
What I am looking for is code that will let me create an instance of the form from the string name that I have, something like:
dim strName as string
dim f as form
strName = "frmMyForm"
f = new ctype(form, strName)
of course this doesn't work because ctype can't convert a string to a form, but this shows what I am attempting.
Can someone show me how to do it right?