G
Guest
My background is in web development using ASP.NET. When I program with
ASP.NET I have both Application and Session objects available to store
objects. Is there an equivalent in WindowsForms?
Currently my solution is to create a private shared collection and use two
public shared functions on the master/parent form (I have a MDI Form setup)
that add and retrieve objects from the collection. I create a new GUID and
use it as the key to the collection object, and pass the GUID around to each
dependent form. Since the master/parent form is always available while the
application is running, this approach works.
This doesn't seem like the elegant solution. Is there a better process?
Thanks.
ASP.NET I have both Application and Session objects available to store
objects. Is there an equivalent in WindowsForms?
Currently my solution is to create a private shared collection and use two
public shared functions on the master/parent form (I have a MDI Form setup)
that add and retrieve objects from the collection. I create a new GUID and
use it as the key to the collection object, and pass the GUID around to each
dependent form. Since the master/parent form is always available while the
application is running, this approach works.
This doesn't seem like the elegant solution. Is there a better process?
Thanks.