Answer the question
In order to leave comments, you need to log in
How to work with variables in winforms?
Perhaps a stupid question, but still interesting how to write code correctly.
For an example, when working in winforms, you need to display at the end, count the values of variables in one textbox. So that's where to properly initialize them, where to count them, and so on? I think it's not right to do it all in one button handler, for example?
Answer the question
In order to leave comments, you need to log in
If you can do everything in one button, then why not, why spray code across five files?
Try like this. The point is that there would be less logic in the form
https://github.com/vkorotenko/HabrQnaNetSamples/bl...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question