Q: If the IDE writes so many code for me, Learning C # is learning how to use the IDE? A: No, the IDE is great for generating code automatically, but it can only do so much. There are things that are really good at it, such as setting a good starting point for you and automatically changing the properties of controls on a form. But the hardest part of programming--Identifying what your program needs to do and letting it do it--is something that no IDE can do. Even if vs is one of the most advanced Ides, it can only do so much. The key code is written by you, not by the IDE. Q: I created a new project in VS, but I didn't find it when I entered the "Projects" folder under "MyDocuments". What's going on? A: First of all, you must be using vs2008--in VS2005, it will not happen. When you first create a project with VS2008, the IDE creates a project file under the Localsettingsapplicationdatatemporaryprojects folder. When you first save the project, the IDE prompts you to enter a new file name and saves it under the Mydocumentsvisualstudio2008projects folder. When you try to open a new project or close a temporary one, you will be prompted to save or discard the temporary project.
Q: What if the IDE creates the code I don't want?
Answer: You can change it. The IDE is set to create code based on the usual usage of elements that are dragged or added. But sometimes that's not what you want. Everything the IDE does for you--every line of code it creates, every file it adds--can be modified, or manually modify the file directly or through an interface that uses a handy IDE. Q: Can i download the express version of VS? Or do I have to use the paid version to follow this book? A: There is no such thing as a free version of this book (downloaded from Microsoft's website). The difference between the express version and the other versions (professional, team) will not hinder the writing of C # code and the creation of complete functionality, perfect applications. Q: Can you rename the file name of the files created by the IDE?
A: Of course, you can change any aspect of your program. But the IDE is a smart-sensing named file. When you add a file, the file name you select affects how the code is generated, and the file name is included in the code created. In some cases, if you rename the file, you have to modify the code or accept the difference in the code from the file name. That's a bit unpleasant, and it's recommended that you do not change the filename unless necessary.
Q: My IDE looks different from yours! Some of the windows are not, some of the wrong location, what is it? A: If you click the Reset window Layout under the Window menu, the IDE will restore the default layout for your window. And then yours looks just like ours. VS will generate code that lets you take the starting point of your application.
Remember, the program's expected performance depends on you.