This might be a rather big question to just answer shortly; much kudos for someone wanting to explain. References to book/other websites/youtube links/something else nice would be fine.
I am getting the hang of programming in C# using visual studio. And my programs are getting bigger and complexer. I’m trying very hard to keep it structured but every time again I find myself ending up messing it up. Functions, variables, guievents and everything in the same form. Finally, I cant find anything without the ctrl+f function anymore.
The variables which are used on multiple forms are stored on a seperate form, which creates more overview. Static values are defined at the top of my program and used in for example switch/case statements.
But still; its very easy to mess up everything. I want more structure in my programs, but I do not really have an example of good structured programming. I do not really know what is standard to keep in the main form, or what should go in seperate forms. Any information on this topic is welcome:)
I strongly recommend you purchase a copy of Code Complete by Steve McConnell.
Snippet from the Amazon page: