In the previous video we created our first application called application where WF WF stands for Windows Forms, and then there occurred the page design application. The page design is divided into three blocks as we can see the exclusion of the upper zone that hosts the toolbar, and the classic menu of Visual Studio 2010. Let us now try to understand well what are these three boxes and how to use them. The center box that this is the largest in the middle of the screen is the main work area of the development environment of Visual Basic 2010 because it allows us to work on the interface of the application that this is here as we can see that the window will be presented to the user who will use our software. In like manner also allows us to work on the code that is the engine of your application. In fact, we can switch, we can move from one mode to another mode interface and how the code by simply pressing a button or another.
So the "View Code" will see the application code and the button "View Designer" we will see the designer of the application interface. Thus underlining the first fundamental concept of designing a Visual Basic 2010 is the fact that an application is divided into two logic levels that the level of the interface and code level. The interface layer is the face that our application and while the level of the Code represents the logic engine that is what the application does in practice. The level of the interface allows the end user of our application to interact with our code, and will be the instrument through which our users will interact with the programmer. Let's go on to analyze the frames of the development environment of Visual Basic 2010 we have this box in the upper right corner that presents a list of all files and application. We have the first node of this tree is simply the name of our project and if we remember how we gave the name of the "first application WF" will appear below the names of all files involved in this project, such as Form1. Form1 is the form that makes riferimennto the window we see in this design. If we had an application consists of multiple windows such as a main window as a window of information about the application, then we will have two forms here, and then two files with the same icon. Then we have the property that is below this. In the Properties pane lists all the characteristics of the object that is in the designer so for example if I selected the entire window I see listed in this box all the properties of the entire window.
If I had a place on the control window, then selecting this check I would see this is in the Properties pane, all the properties associated with the control button, which I selected for summing up the properties pane does is list all the features of the currently selected control in the dialog design often we remove this check from the forum and let's change some properties of this dialog box as I said this will be just the interface that the user will be so in the window and on which we going to put all controls of our application We can already see a preview of our application that is empty for the moment we see in the preview by clicking on this button starts a father or alternatively by pressing the button press the button five and see how you present the application after a few seconds necessary to fill out our application we can see what we can see that the end user will see a window that is currently empty we can close and return to the design and then we saw another important concept in programming Visual Basic 2010 that is, to start a project to compile the project and see what the end result, just press this button start debugging, or alternatively press F5. As we have seen since the last compilation that we did not press this button and the window will show the user a completely blank window and then the application and say, totally useless. What we need now is to give a somewhat 'more professional in this window and see fill it with controls that allow the user to interact with our code. First of all, let's change what is the proper name of the application which is what you accept as the application name, ie the title. As we see from the title of this window is a standard name Form1 Forms for Microsoft these are good designers. So instead of Form1 indicate a more meaningful name for the title of the application. As we said before, clicking on the box in the Properties pane, you see all the properties associated with the selected window between these properties are also Text, which is nothing but the text of the window or the text of the top bar of this form. Come to the Form1 and then replace the name of our application. Recall that we called the application "before applying WF" we can then assign the title "first Windows Forms application. We can give sending or click on a blank area, and here that has changed the title of the application. We have a first drawback of applying a first bug in the sense that the title can not be seen completely in fact the title of our application is highlighted throughout this phrase on the title. Instead, we have a phrase that is actually broken. What should we do? There are two options: either shorten the sentence is the title of the application or see so much more convenient to enlarge the visible area of the window to do this we use these three white squares that are on the edges of the window frames and are drag as can be seen passing the cursor over these boxes to drag the cursor itself changes shape and becomes a double arrow. This means that clicking and dragging the mouse to the edge of the window can be dragged to enlarge or to restrict this can be done at the bottom of the window on the right side edge or two on all this part by pressing the bottom right corner. We see that changing the size of the window was made visible the phrase that I put as the title of the application for which there may be sufficiently satisfied to have solved the first bug of this application and Visual Basic 2010 now that everything's OK, what do saving the application to save all the files of the press with some of these discs the "save everything" we will be asked where to save the application is fine in this process standard cell directory Directory Project Visual Basic 2010 black issued in the name of the document and is the name that we gave when you created the application in that folder where the directory does not exist is then automatically created. Press the Save button and our application has been saved successfully.