Hopefully this hasn't been asked already - apologies if so
I have a Windows Form running inside C# - built using the form designer
I've built a number of methods inside the form Events which I now want to strip out into External class files (in order to try and make the app a bit more architecturally correct so to speak).
To do this, I have created a new Project which I've added to the Solution.
I've managed to connect the class to the form by building the .cs file and then referencing the class in my form method - example reference:
ClearDetails cls = new ClearDetails();
So, if I have this right, I should be able to add my namespace to my form code, then specify the above code inside the Form Load event, then ultimately, the cls object created above should be available inside any event within the form?
However, this does not appear to be the case - the cls object is only available in the Form Load event?
My Class file contains a Public ClearDetails constructor along with a public method. The class file also uses the System.Windows.Forms namespace. I am using VS 2008 with Framework 3.5
If anyone could help or point me in the right direction, your help would be greatly appreciated
Many Thanks,
Dan