KeysCoder
Member
Hi everyone! This is my first post here. I'm yet another vb6 coder finaly taking the .net plunge.
If I understand the OOP concept correctly, there really is no place for public variables in it. I know vb.net still allows it but it doesn't seem to fit the new paradigm.
In vb6, I often used public variables to store things like user preferences which needed to be visible to multiple procedures across the application. What's the proper way to handle that in .net? Put them in a structure? A class? How about adding them to the main application form as properties?
In vb6, I often used public variables to store things like user preferences which needed to be visible to multiple procedures across the application. What's the proper way to handle that in .net? Put them in a structure? A class? How about adding them to the main application form as properties?