Hi folks, I'm wondering if it's bad practice in Visual C# to have code in the constructor like so
or is it better to have methods called, variables declared, etc, in the app'sCode:public Form1() { InitializeComponent(); //Some user generated code here like the examples below method1(); method2(); etc, etc..... }
Form1_Load(...){.....} portion of the code as any code here will run when the form loads anyway.
Thanks for your help.![]()




Reply With Quote