So as part of my learning experience, I have been shifting as much code as I could muster to defined classes to limit the length of my Form.cs. I have done this for each of the things that I can think of doing in terms of file naming, time capturing, data storage.
However, quite a lot of my win form application is actually interacting with the win form UI items. There are textboxes, there are buttons and active labels etc.
From what I can see, it isn't that easy to pass out the items for another class to handle, and the best you can do is pass out the information to an object then refer to the object in your code?
So, if I have text boxes that need to be populated after X has happened, I will still need the code in my main Form.cs file for actually sending that data to the text box or taking it from the textbox?
As you can see, I am not 100% on this....
However, quite a lot of my win form application is actually interacting with the win form UI items. There are textboxes, there are buttons and active labels etc.
From what I can see, it isn't that easy to pass out the items for another class to handle, and the best you can do is pass out the information to an object then refer to the object in your code?
So, if I have text boxes that need to be populated after X has happened, I will still need the code in my main Form.cs file for actually sending that data to the text box or taking it from the textbox?
As you can see, I am not 100% on this....