Table of Contents
What is Visual Studio and How Does Visual Studio Work? | Introduction To Visual Studio
What is Visual Studio – Introduction – You must have worked in Microsoft Word. Whatever you type there appears in the same form as you print it. You have to use the menus and tools available in different palettes to format your document. Visual Studio is also a very powerful tool that makes software development as easy as working with Word, Excel, and PowerPoint. It’s an excellent integrated development tool that helps you design interfaces. With the help of this only you have to write some objects to do the work.
Visual Studio 2005 provides the environment in which to code, which is a collection of several computer languages working on the principles of the various Dot Net (.Net) frameworks. That is, you can work in this environment with several languages. In this chapter, we will show you how to work in Visual Studio 2005.
What are Visual Studio and its uses? | What is the purpose of Microsoft Visual Studio? | Visual Studio.Net

What is Visual Studio?
Visual Studio is a complete set of development tools for developing desktop applications (ASP, XML, COME) web services, and mobile applications. Visual Studio provides a common integrated development environment for Visual Basic, Visual C++, C Sharp (CM), and May Sharp (34). In this, you can build a solution by adjusting them. In addition, these languages harness the power of the dot net framework’s functionalities which provide the core technologies that simplify the development of ASP web applications and XML web services. Some new tools and technologies have been added in Visual Studio 2005 which are as follows –
1. Visual Studio Tools For Office – Microsoft Visual Studio 2005 Tools for Microsoft Office System lets you work with multiple 2005 documents and Excel 2003 workbooks using Visual Basic and Visual C Sharp as extended solutions. can build. Visual Studio Tools for Office includes multiple Word documents, Word templates, Excel workbooks, and new Visual Studio projects for creating code behind Excel templates. You can install it as a stand-alone program or as a part of Microsoft Visual Studio 2005 Team System products.
2. Visual Web Developer – Visual Studio 2005 has a new web page designer called Visual Web Developer which includes many more tools for creating and editing ASP.NET web pages and HTML pages. things have been included. It has a simpler and faster way to build web foamers than Visual Studio 2003. Visual Studio 2005 Web Developer provides advanced features in all areas of website development. You can create and maintain websites as local folders in Internet Information Services or on an FTP or SharePoint server.
3. Windows Forms – Windows Forms is used to build Microsoft applications on the Dot Net Framework. A framework provides an explicit, object-oriented extensible set of classes in which you can develop well-defined Windows applications. Additionally, Windows Forms can act as a native user interface in a multi-tier distributed solution.
4. XML Web Services – XML web services are applications that can make requests and receive data using XML over HTTP. XML Web services are not tied to any particular component technology or object calling rules and can therefore be accessed by any language, component model, or operating system. In Visual Studio, you can create or add XML Web services using Visual Basic, C Sharp, JScript, or ATL Server.
5. XML Support – Extensible Mark-up Language (Extensible Markup Language) provides a method of describing structured data. XML is a subset of SGML that is optimized for delivery on the web. The World Wide Web Consortium defines the XML standard so that
Structured data should be uniform and application-independent. Visual Studio fully supports XML and provides an XML designer that makes it easy to edit XML and create XML schemas.
Opening Visual Studio
The first requirement for creating a Visual Basic program is to open Visual Studio. Especially when we are creating Windows User Interface. Although to some extent we can create a console user interface in Notepad also. But it is not wise when we have a powerful Integrated Development Environment in the form of Visual Studio. That is, it is necessary to know how we will open Visual Studio. Visual Studio 2005 is a program like any other Microsoft Windows program. And the method to open it is the same as you do to open any other program. These steps are used to start it.
1. Click Start.
2. Point to All Programs. (It depends on your operating system and its settings.)
3. Then, point to Microsoft Visual Studio 2005. (It depends on how you installed Studio. Basically, it doesn’t change much.)
4. Finally again select Microsoft Visual Studio 2005.
After that, you will see the initial screen of Microsoft Visual Studio 2005.
Next, let us discuss a little on its initial screen a. Although we will discuss it in detail in the section on Integrated Development Environment in the next lesson. We call its initial page the start page in terms of technology. The start page has four main sections.
1. Recent Projects – This section lists projects that you have recently created or opened. In the Recent Projects section, you can see that only 5 projects are visible. You can also increase it. The maximum number of projects displayed in it is 24. From this section, you can create new projects and also open old projects.
2. Getting Started – This section highlights features related to Visual Basic dot net. This section is designed to provide help on websites, technical articles, and other topics to increase your productivity. This table of contents changes according to the settings you make. You can find help in this section if MSDN is installed on your system.
3. Visual Studio Headlines – In this section, some online information related to Visual Studio is available for you. For this, it is necessary that you are connected to the internet.
4. Visual Studio Developer News – If you are connected to the Internet, then Microsoft introduces you to a lot of information related to it, especially the very latest news.New project and its storage in memory – When you create a new project, initially it only exists in the initial memory until you save it and give it a meaningful name.
Change the number of projects displayed in Recent Projects
1. Click on Tools and select Options….
2. Thereafter the Options dialog box will appear.
3. Here, expand Environment and select General. After that write the desired number in the second text box in Recent Files, but remember that its maximum limit is 24, that is, you can reveal a maximum of 24 projects in this section.
Creating A New Project
When you open Visual Studio, it means that you want to create a new project or you want to open an already created project. Follow the written steps to create a new project in Visual Studio-
Click File and click New Project… or you can press Ctrl+N from the keyboard. After that, you will see the New Project dialog box. Here select the project as per your wish.
When you create a project, a new form (also called the form designer) appears in the Integrated Development Environment. This is the form that is displayed when the program is executed. There can be many forms in a project like an application can be based on many windows.
Project Type
You can create many types of projects and solutions on VB.net. Yet three main types of projects can be created in Studio Dot Net. Such as Windows Applications, Main Applications (Web Applications), and Console Applications. You can create software like Tally under the Windows application.
At the same time, you can develop websites with web applications. Whereas using a console application you can create an application like a DOS window. Apart from this, you can also make software for pocket computers and smartphones.
Creating Windows Application
As you have been told earlier that you are in V.B. Many types of applications can be created in dot net. In which Windows application is one. Which we are learning to make here. To create a Windows application, you have to follow the following steps respectively.
1- Open the New Project dialog box.
2- Select Windows under Visual Basic from the Project Types: section and select Windows Application in Visual Studio installed templates in the Templates section. In Name, you will see that WindowsApplication1 has come without you typing. This name is given by default from VV.NET. You can change this now or when you close the project. A better approach is to just leave the name by default. Even if your computer shuts down suddenly, your application will be safe with that name. Then, click OK.
3- After this, you will see the form designer. You can now place controls on your form from the toolbox on the left side of the form designer.
What is the user interface? The user interface is the visible part of the applications with the help of which the user interacts with the applications.
Adding Controls Onto The Form Designer
Whenever we open VB.NET inside Visual Studio. While building a Windows user interface in dot net, we display the form designer and keep control over it. Toolbox to control the form designer The toolbox is located on the left side of the form designer in Studio and has several tabs like Data, Component, and All Windows Forms.
You add them to your applications to perform tasks for various uses. For example, All Windows are Data, Component, and All Windows are Forms. Inside each tab, there are controls and components. Forms contain text boxes, buttons, and checkboxes. To add these controls to the form, you either double-click the control from the toolbox or single-click to select them and place them at a specific location on the form.
Use these commands to add controls to the application –
1. Click on the Toolbox panel.
2. After that the toolbox will open. If the Toolbox panel is not available and the Toolbox is not visible, to display it, click the View menu and select Toolbox, or press Carl + ALT + X on the keyboard, or click the Toolbox button from the standard toolbar.
3. Then, click that control (eg button) and bag it to the desired location on the form designer or double-click the control. When you double-click a control, it appears in the top-left corner of the form.
4. To move the control from one place to another on the form designer, it is used. To resize a control, click and drag it to the desired size by moving it to the small rectangular box at the corners or edges.
Arranging the Dust in the Toolbox – If you are having trouble locating the correct controls in the Toolbox, right-click on the Toolbox and click Sort Items Alphabetically. Doing so will arrange all the tools on the toolbox in alphabetical order.
The label is a control whose size cannot be changed unless its property AutoSize is set to False. Its AutoSize property is set by default Tue. This is because the size of a label is usually determined by its caption.
Customizing Looks and Behavior of Controls
As you can see there are many controls in the toolbox and each control has a specific function. For example, a panel control is used to group several other controls. A Button control is used to perform a specific action (for example, to open or close another form) when the user clicks that button.
Textbox control is used for input by the user through the keyboard. After placing all these controls on the form, their appearance and behavior have to be customized as per the requirement of the application. The form and behavior of controls are set at design time with the help of the Properties window, detailed information is given in the next chapters. Here we are only giving you a brief introduction to it.
To set the property of the control
1. Click on the control whose property you want to set or change.
2. Then, display the Properties window if it is not visible on your screen. You can do this by selecting Properties Window from the View menu. Or it can be done by pressing the F4 function key from the keyboard. Or for this, you can click on the Properties Window button from the standard toolbar.
3. When the Properties window is displayed (as shown in figure 2.10.) its various properties like Name,
You can make changes in Text, Dock, BackColor, etc.
VB Dot Net Property
Properties in Visual Basic dot Net are features of an object. For example, the Text property of a Button control is the feature of that object, that is, the control, that reveals the caption of that control. Sometimes you have to select the property value and sometimes you have to input it. These values can be small windows, text, integers, and booleans (true and false). You also set the values of many properties at runtime (by writing code).
Writing Codes For Various Objects In Your Program
Now I am going to tell you how you will give instructions to your program. This work will be done by writing codes for various controls in the program. This is the most important part of program development that you will come across throughout the article.
To write code in your program do this –
1. Double-click the control for which you want to add the code. After that, you have to go to the code designer
The window will look like this.
2. When you double-click a control, Visual Studio does a lot of work on its own.
For example, if you double-click the form the following code will automatically be displayed.
Private Sub Form1_Load (ByVal sender As System.Object, ByVale As
System.EventArgs) Handles My Base. loading
end sub
You have to write the code between the above Sub Form 1 and End Sub. We call it event handler or sub procedure. Sub Form1 is the starting line of the subroutine (function) and End Sub is the last line of the same subroutine. Load is the name of the method which is an action of that object i.e. program. Now you have to tell what to do when Fom1 is loaded. Now you can give whatever instructions you want to give. For example, to set the three properties of Form1, Text, BackColor, and AximizeBox, you will write these three lines in between the two lines-
Me.Text = “Welcome to VB.Net”
Me. BackColor = Color.Aqua
Me. MaximizeBox = False
Setting Properties at Runtime – When you set a property of an object in Visual Basic.Net, the result of that property is available to you.
Running Your Program
When you have completed your program then after that you have to check whether your program is working properly or not. For this, it has to be implemented. Do this to run the program.
- Click on Debug menu and select Start Debugging. Then click on the Start Debugging button from the standard toolbar. Or press the F5 function key on the keyboard.
What is debugging? – Normally you run the program after adding the code to see whether the program is working properly or giving any errors. This process is called debugging.
Let’s Practice And Learn
Create a Windows Application. Add a button to it whose caption is set to Say Hello. And on clicking Say Hello appears on the form.
Object | Property | Value |
Form Button Label | Name Text Size MaximizeBox | firm Hello Hello 338,308 False |
Name Text Size Location TextAlign | btnHello Say Hello! 75, 23 132,198 MiddleCenter | |
Name Text AutoSize Size Location TextAlign Font | binHello False 216, 23 56,44 MiddleCenter Verdana, 10pt, Bold |
Solution :
- Click on the File menu and select New Project.
- After the New Project dialog box opens, click Windows Application in the Templates pane.
- Type Lab Exercise 5.2 in the Name textbox and click OK. Then a new window The Forms project will open.
- Add a Label and a Button control from the Toolbox as per the details given in the question on the form. And set their property according to the question and decorate them according to the picture. Type this code in the btnHello event handler after clicking Say Hello button twice IblHello.Text = “Hullo! Ladies and Gentlemen”
- Then press F5. After that Say Hello! On clicking the button you will get the result as in Figure LA2.3
- Will get
What Did You Learn Today
- Visual Studio is a complete set of development tools for developing desktop applications, ASP.NET applications, XML, web services, and mobile applications.
- Visual Studio provides a common integrated development environment for Visual Basic, Visual C++, C Sharp (C#), and J Sharp (J#). In this, you can build a solution by adjusting them.
- Visual Studio 2005 Tools for the Microsoft Office System lets you build solutions by extending Word 2003 documents and Excel 2003 workbooks using Visual Basic and Visual C Sharp.
- Visual Studio 2005 has a new Visual Web Developer called Web Page Designer which includes many more features for creating and editing ASP.NET Web pages and HTML pages. It has a simpler and faster way to build web foamers than Visual Studio 2003.
- Windows builders are used to build Microsoft applications on the Dot Net Framework – a framework that provides a clean, object-oriented extensible set of classes in which you can develop good-looking Windows applications. Is. Using this you can get requests and a diary.
- XML Web Services are applications that can make requests and receive data using XML over HTTP.
- Extensible Markup Language (Extensible Markup Language) provides a method of describing structured data. XML is a subset of SGML that is optimized for delivery on the web.
- Visual Studio 2005 is a program like any other Microsoft Windows program. And the method to open it is the same as you do to open any other program.
- Recent Projects list projects that you have recently created or opened. The maximum number of projects displayed in the Recent Projects section is 24.
- When you create a new project, initially it only exists in the initial memory until you save it and give it a meaningful name.
- When you create a project, a new form (also known as the form designer) appears in the Integrated Development Environment. This is the form that is displayed when the program is executed. A project can have multiple forms like an application can be based on multiple windows.
- You can create many types of projects and solutions in VB.NET. Yet three main types of projects can be created in Visual Studio Dot Net. Like – as Windows Applications, Web Applications, and Console Applications.
- User Interface is the visible part of the applications with the help of which the user interacts with the applications.
- Whenever we open VB inside Visual Studio. While building a Windows user interface in dot net, we keep control over it after displaying the form designer. Toolbox is used to control the form designer.
- Label is a control whose size cannot be changed unless its property Auto Size is set to False. Its Auto Size property is set to True by default. This is because the size of a label is usually determined by its caption.
- There are many controls in the toolbox and each control has a specific function.
- To display the Properties window, select the Properties window from the View menu or you can press the F4 function key from the keyboard.
- Properties in Visual Basic dot net are the features of an object. For example, the Text property of a Button control is the feature of that object, that is, the control, that reveals the caption of that control. When you set a property of an object in Visual Basic.Net, you only see the result of that property at runtime.
- Generally after adding the code you run the program to see whether the program is working properly or giving any errors. This process is called debugging.