I wonder whether there are some guidelines that I can use for coding Winform applications in .net, preferably in C#?
For example, when I initialize data bindings for a form, shall I put the initialization code in the loading event of the form or in the constructor of the form? What is the correct way of adding controls/components from code rather than from designer? (Improper way may lead to undisposed controls/components). This sort of things.
Thanks for the help in advance.
I know you’re asking specifically for WinForms, but the classic first stop resource for design guidelines should be the Design Guidelines for Class Library Developers.
Once you have a good handle on that, you should be in a better place to answer questions specific to WinForms development like the ones you’re asking based on these guidelines.