Question about objects and forms
-
I've been writing an app (desktop) that has information that needs to be passed between forms. I'd like to use an object to move the information about the forms, but it didn't seem too feasible. I did some research online and most people say to use a 'global' module that holds the variables that are common amongst the forms, but there are trade-offs. However they (the articles I've read) won't specify the trade-offs. Is it a performance issue that is caused by doing this? Is there a way to move an object from form to form cleanly? I'm just curious as to this community's thoughts on the subject. If this needs to move to another forum area, please feel free. I placed it here because I develop in VB.Net 2k5. Thanks in advance.
-
I've been writing an app (desktop) that has information that needs to be passed between forms. I'd like to use an object to move the information about the forms, but it didn't seem too feasible. I did some research online and most people say to use a 'global' module that holds the variables that are common amongst the forms, but there are trade-offs. However they (the articles I've read) won't specify the trade-offs. Is it a performance issue that is caused by doing this? Is there a way to move an object from form to form cleanly? I'm just curious as to this community's thoughts on the subject. If this needs to move to another forum area, please feel free. I placed it here because I develop in VB.Net 2k5. Thanks in advance.
I would say that the trade-off isn't in performance but in maintainability. In my point of view, this is a modelling problem. Have a look at this article for example: Building an MVP Framework for .NET. Part 1: The Basics of MVC and MVP[^]
The need to optimize rises from a bad design
-
I would say that the trade-off isn't in performance but in maintainability. In my point of view, this is a modelling problem. Have a look at this article for example: Building an MVP Framework for .NET. Part 1: The Basics of MVC and MVP[^]
The need to optimize rises from a bad design