troubleshooting Question

Inheriting forms with Singleton

Avatar of siskinds
siskinds asked on
10 Comments1 Solution302 ViewsLast Modified:
Hi All,
I have an MDI application where I am modifying data for a number of items that are all so similar I hope to use a single form and change the title and a couple of things on the form rather than create a bunch of forms that are all the same.  I'd also like to limit each instance of any given form type to 1.  I've tried using various forms of the singleton pattern, but it (by design) won't let me create multiple instance of the form so I tried to inherit from a base form to enforce singleton on the derived forms but was getting some weird errors that publically exposed method calls were not defined (?!)  Has anyone tried this type of thing?  I can do this with brute force looping on the MDI itself, but was hoping for something more "elegant"...

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros