S
SetonSoftware
I have a class with shared properties and methods that manages the
open forms in my WinForms application, VB.NET 2005. The data contained
within must persist for the lifetime of the application. When the user
selects a menu item on the main form I want the method of the class to
add the form's data to the internal HashTable that stores it and then
raise an event in the main form that will load a dialog form.
Since the class is never instantiated I don't see how I can use
WithEvents to handle publish/subscribe. Any ideas as to how I can get
the menu manager class to do this?
Thanks
Carl
open forms in my WinForms application, VB.NET 2005. The data contained
within must persist for the lifetime of the application. When the user
selects a menu item on the main form I want the method of the class to
add the form's data to the internal HashTable that stores it and then
raise an event in the main form that will load a dialog form.
Since the class is never instantiated I don't see how I can use
WithEvents to handle publish/subscribe. Any ideas as to how I can get
the menu manager class to do this?
Thanks
Carl