I'm working with MDI forms in my current project, and have just run into a couple strange things. My problems started when I was unable to create multiple versions of the same child form, which I need to be able to do.

I looked in the MSDN help, and found that you could do this by using the set command after declaring the form as a variable.

So my program declares a form as follows:

Dim frmOpen as form
Set frmOpen = new frmOpen
frmOpen.show

(I originally tried to use a different name for the variable form, but that gave me errors)

What is strange is that this command calls two versions of the same form, one which loads and does all my planned code, and one that shows itself and sits there. I thought this might be because I was using a variable name that was the same as the name of the form, but this happened even without the same name.

Can anybody help?

Also, is there a better way to call multiple versions of the same child form?


Mat