+ 1
Whole program in 1 .cs file
I know PHP CMS like wordpress have alot of extra .php files each for something different, but how it looks like in C# programming, is it wrong to have a big Program in just one .CS File? or need a big Software to have for each Funtion inside a own .CS file? sorry for comparing this 2 languages but i come from webDev...and I want to start with C#
5 odpowiedzi
+ 4
I think this is the same in all languages, do you want a file with 34000 lines and have headaches searching code? I think not, always have an organized code
Hope it helps you
+ 3
Maybe like this:
private void button1_Click(object sender, EventArgs e) {
Form2 form2= new Form2(); form2.Show();
}
You're welcome
+ 2
If you are doing a Windows form application.. You only need to instantiate the second form in your main program, and execute secondform.show() in button click event
+ 2
Thank you
some guys on Forums told me this only works with WPF or something u helpd me alot
+ 1
Thank you very much, Is there any good Tutorial how to implement let's say second.cs in my Main.cs so for example if I click a Button on my Main Program than show me something from second.cs THANK YOU