Solution Explorer
Explains the uses and function of the solution explorer window in the Visual C# IDE
In simple terms, the solution explorer displays the various files and folders included in our project. These files can be the C# code files, class files, configuration file, XML files, database files and more. Folders are used to organize the files in groups. We can add new files and folders and import existing files into the project using the solution explorer.
To view the solution explorer window, we need to move the mouse on the solution explorer tab in the IDE. The window will open up automatically on the right hand side of the IDE.
Solution and Projects - When we start a new project, it opens inside a solution. The solution generally has the same name as that of the project. A solution can contain multiple projects though this mostly happens in large-scale projects.
As we can see in the figure above, the name of our project is displayed at the top of the solution explorer, right under the solution name. Under it appears the folders and files included in our project.
Right clicking on the project name opens up a menu. This menu contains various options for adding new files and folders, adding existing files or folders, deleting files or folders etc. Similarly, right clicking on a file or folder also displays a menu with different options. We will learn about them as we progress through this tutorial.
Note: The default setting of Visual C# 2005 Express IDE uses the solution explorer window in `Auto Hide' mode. It means that when the mouse is moved outside of the solution explorer window, the window will hide. This is done to make more room for the workspace which is used to design the form or write the code. To make the solution explorer window visible again, move the mouse on the solution explorer tab in the IDE.
However, to view the solution explorer window permanently, use the Auto Hide button that looks like a pushpin. It is a toggle button. Clicking it once will make the window permanently visible. Clicking it again will change to auto hide mode.
This concept is also applicable to other IDE windows like the Database Explorer window, Properties window, Tool Box and the Error List window.