Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

How do I insure that a MDI Child Form is created only once? I don't want a certain form to be opened several times (that is, several versions of the same form is displayed)

 

EDIT:

Nevermind, I decided to use a simple tab page rather then MDI forms.

Edited by wyrd
Gamer extraordinaire. Programmer wannabe.
Posted
Wyrd, I had the same problem and got around it by having a global boolean variable which is set to True when the child is first opened. Any attempt to open another child is ignored if the variable is True. Messy but works a treat in my app.
My website

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...