Reference a Class Object?
Posted on 2014-08-07
I have often not used classes because I was never sure how to reference them correctly. My scenario is that I have a bunch of forms in my project. In the same project is a "GeneralClass" file that contains many different classes (primarily used to represent Database Tables).
Lets say I instantiate a particular class in form1. I load the various properties (which again represent columns of Data Tables) with data. Then...in form2, I need to be able to take the data from that class and move that data into different controls on form2. What is the best way to do this?
I actually created a new project that contained that "GeneralClass" file. I got to thinking that if I'm not going to use that project in any other solution, I might as well just create that "GeneralClass" file within this project. How far off am I?