Discussion Locked

VB.NET MDI Child Forms

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'am having a little difficulties with the new methods to deal with the MDI forms. I had no problem in VB 6. Anyway

I want to prevent multiple copies of the same MDIChild from opening.

i.e. if a child form "A" is already open then it should not open a duplicate copy, but instead activate it & set the focus on it.

How do I check if the child form "A" is already open?

Thanks

5 replies

by dushy_ant

Declare your Form Variable at module level adn dont reinitialize it when opening the form

by rakeshkanojia

tried creating a Variable in Module / Form Lelvel.

I'am able to open only one instance of the form but when I Close & try to reopen again get the following error.

"Cannot access a disposed object name "<

by rakeshkanojia

I tried creating a Variable in Module / Form Lelvel.

I'am able to open only one instance of the form but when I Close & try to reopen again get the following error.

"Cannot access a disposed object name "<

by rakeshkanojia

I tried creating a Variable in Module / Form Lelvel.

I'am able to open only one instance of the form but when I Close & try to reopen again get the following error.

"Cannot access a disposed object name "<

This discussion is closed to new replies.