L
Lorne Smith
Hi, I have a question about instantiating forms.
I have a particular issue where I must load a form, but the name of the form
is held in a variable (our app uses differently laid out forms for different
sites, so the name of the form to load is held in a resource.
If VB6, I did the following:
Dim lForm As Form
Set lForm = Forms.Add(pFormName)
lForm.Show
pFormName is a string variable holding the actual name of the form. This
allows me to add an instance the form to the forms collection and then
handle it as any other form.
As the Forms collection is dead & gone in .NET, how would I achieve the same
result?
Thanks
Lorne
I have a particular issue where I must load a form, but the name of the form
is held in a variable (our app uses differently laid out forms for different
sites, so the name of the form to load is held in a resource.
If VB6, I did the following:
Dim lForm As Form
Set lForm = Forms.Add(pFormName)
lForm.Show
pFormName is a string variable holding the actual name of the form. This
allows me to add an instance the form to the forms collection and then
handle it as any other form.
As the Forms collection is dead & gone in .NET, how would I achieve the same
result?
Thanks
Lorne