Click here to Skip to main content
12,630,847 members (32,071 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

2.9K views
1 bookmarked
Posted

Single Instance Form in a MDI application

, 20 Sep 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Assuming you only want a single instance of a form type, I'd suggest you add a Dictionary(Of Type, Form). ShowOrActiveForm would have a single parameter of Type and would be a subroutine.The Form object could be found based on a ContainsKey. The rest of the ShowOrActiveForm function would be...

Assuming you only want a single instance of a form type, I'd suggest you add a Dictionary(Of Type, Form). ShowOrActiveForm would have a single parameter of Type and would be a subroutine.

The Form object could be found based on a ContainsKey. The rest of the ShowOrActiveForm function would be the same.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Ctznkane
United States United States
No Biography provided

You may also be interested in...

Pro
Pro

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161205.3 | Last Updated 20 Sep 2011
Article Copyright 2011 by Ctznkane
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid