Hi I was wondering if anyone can help me.

I have a program that has an MDIChild form which contains a button that opens up a second MDIChild form. This second form has a listbox checkbox on it that allows the user to select from. Once they have finished selecting, I need the second MDIChild form to close and return focus to the first MDIChild form.

The problem I am getting is when I close the second MDIChild form and try to return to the first one, instead of updating the first form that is already loaded it is creating a new instance of the first MDIChild form so I am getting 2!!

Does anyone know anything about this?

7 Years
Discussion Span
Last Post by Dazpenn

Yes, you have code something like this...

Dim F As New Form1

somewhere in your code. Find it, change it to Form1.Show. Should fix it.

Good Luck


Thank you very much vb5prgrmr! perfect answer, sorted it straight away :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.