Introducing Visual Studio .NET
Số trang: 7
Loại file: pdf
Dung lượng: 53.43 KB
Lượt xem: 12
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Introducing Visual Studio .NET In the previous sections, you saw programs that connect to various databases, retrieve a row from a table, and display the column values for that row on your computer screen.
Nội dung trích xuất từ tài liệu:
Introducing Visual Studio .NETIntroducing Visual Studio .NETIn the previous sections, you saw programs that connect to various databases, retrieve arow from a table, and display the column values for that row on your computer screen.This type of program is known as a console application because it displays outputdirectly on the screen on which the program is running.You can use Visual Studio .NET (VS .NET) to create console applications, as well as thefollowing types of applications: • Windows Applications These take advantage of the visual controls offered by the Windows operating system, such as menus, buttons, and editable text boxes. Windows Explorer, which you use to navigate the file system of your computer, is one example. Youll learn about Windows programming in Chapter 6, Introducing Windows Applications and ADO.NET. • ASP.NET Applications These run over the Internet. You access an ASP.NET application using a Web browser, such as Internet Explorer. Examples of ASP.NET applications would be online banking, stock trading, or auction systems. Youll learn about ASP.NET programming in Chapter 15, Introducing Web Applications: ASP.NET. • ASP.NET Web Services These also run over the Internet. Also known as XML Web services, the difference is that you can use them to offer a service that could be used in a distributed system of interconnected services. For example, Microsofts Passport Web service offers identification and authentication of Web users you could then use in your own Web application. Youll learn about Web services in Chapter 17, Web Services.This is not an exhaustive list of the types of applications you can develop with VS .NET,but it does give you flavor for the broad range of VS .NETs capabilities.In the rest of this section, youll see how to develop and run a console application usingVS .NET. If youve installed VS .NET on your computer, youll be able to follow alongwith the example. If you dont have VS .NET, dont worry; youll still be able to seewhats going on from the figures provided.Starting Visual Studio .NET and Creating a ProjectAll of your work in VS .NET is organized into projects. Projects contain the source andexecutable files for your program, among other items. If you have VS .NET installed,start it by selecting Start ➣ Programs ➣ Microsoft Visual Studio .NET ➣ MicrosoftVisual Studio .NET. Once VS .NET has started, youll see the Start page (see Figure 1.1).Figure 1.1: The Start pageFrom the Start page, you can see any existing projects youve created. You can open andcreate projects using the Open Project and New Project buttons, respectively. Youllcreate a new project shortly.Using the VS .NET LinksAs you can see from Figure 1.1, VS .NET contains a number of links on the left of theStart page. Some of these links provide access to useful information on the Internet about.NET; the links are as follows: • Get Started Open the Start page. • Whats New View any updates for VS .NET or Windows. You can also view upcoming training events and conferences. • Online Community Get in touch with other members of the .NET community. Includes links to Web sites and newsgroups. • Headlines View the latest news on .NET. • Search Online Search the MSDN Online Library for technical material such as published articles on .NET. • Downloads Download trial applications and example programs from the Web sites featured here. • XML Web Services Find registered XML Web services that you can then use in your own programs. XML Web services are also known as ASP.NET Web services. Youll learn more about Web services in Chapter 17. • Web Hosting A Web hosting company can take your program and run it for you. It takes care of the computers on which your program runs. Use the Web Hosting link to view companies that provide these services. • My Profile Set items such as your required keyboard scheme and window layout.Click these links and explore the information provided. As youll see, theres a lot ofinformation about .NET on the Internet.Creating a New ProjectWhen youre finished examining the information in the previous links, create a newproject by clicking the New Project button on the Get Started page.Note You can also create a new project by selecting File ➣ New ➣ Project, or by pressing Ctrl+Shift+N on your keyboard.When you create a new project, VS .NET displays the New Project dialog box, whichyou use to select the type of project you want to create. You also enter the name andlocation of your new project; the location is the directory where you want to store thefiles for your project.Because youre going to be creating a C# console application, select Visual C# Projectsfrom the Project Types section on the left of the New Project dialog box, and selectConsole Application from the Templates section on the right. EnterMyConsoleApplication in the Name field, and keep the default directory in the Locationfield. Figure 1.2 shows the completed New Project dialog box with these settings.Figure 1.2: The New Project dialog box with the appropriate settings for a C# consoleapplicationClick the OK button to create the new project.Working in the VS .NET EnvironmentOnce youve created a new project, the main development screen is displayed (see Figure1.3). This screen is the environment in which youll develop your project. As you can see,VS .NET has already created some starting code for you. This code is a skeleton for yourprogram; youll see how to modify it shortly. In this section, Ill give you a briefdescription of the different parts of the VS .NET environment.Figure 1.3: The VS .NET environmentNote Depending on your settings for VS .NET, your s ...
Nội dung trích xuất từ tài liệu:
Introducing Visual Studio .NETIntroducing Visual Studio .NETIn the previous sections, you saw programs that connect to various databases, retrieve arow from a table, and display the column values for that row on your computer screen.This type of program is known as a console application because it displays outputdirectly on the screen on which the program is running.You can use Visual Studio .NET (VS .NET) to create console applications, as well as thefollowing types of applications: • Windows Applications These take advantage of the visual controls offered by the Windows operating system, such as menus, buttons, and editable text boxes. Windows Explorer, which you use to navigate the file system of your computer, is one example. Youll learn about Windows programming in Chapter 6, Introducing Windows Applications and ADO.NET. • ASP.NET Applications These run over the Internet. You access an ASP.NET application using a Web browser, such as Internet Explorer. Examples of ASP.NET applications would be online banking, stock trading, or auction systems. Youll learn about ASP.NET programming in Chapter 15, Introducing Web Applications: ASP.NET. • ASP.NET Web Services These also run over the Internet. Also known as XML Web services, the difference is that you can use them to offer a service that could be used in a distributed system of interconnected services. For example, Microsofts Passport Web service offers identification and authentication of Web users you could then use in your own Web application. Youll learn about Web services in Chapter 17, Web Services.This is not an exhaustive list of the types of applications you can develop with VS .NET,but it does give you flavor for the broad range of VS .NETs capabilities.In the rest of this section, youll see how to develop and run a console application usingVS .NET. If youve installed VS .NET on your computer, youll be able to follow alongwith the example. If you dont have VS .NET, dont worry; youll still be able to seewhats going on from the figures provided.Starting Visual Studio .NET and Creating a ProjectAll of your work in VS .NET is organized into projects. Projects contain the source andexecutable files for your program, among other items. If you have VS .NET installed,start it by selecting Start ➣ Programs ➣ Microsoft Visual Studio .NET ➣ MicrosoftVisual Studio .NET. Once VS .NET has started, youll see the Start page (see Figure 1.1).Figure 1.1: The Start pageFrom the Start page, you can see any existing projects youve created. You can open andcreate projects using the Open Project and New Project buttons, respectively. Youllcreate a new project shortly.Using the VS .NET LinksAs you can see from Figure 1.1, VS .NET contains a number of links on the left of theStart page. Some of these links provide access to useful information on the Internet about.NET; the links are as follows: • Get Started Open the Start page. • Whats New View any updates for VS .NET or Windows. You can also view upcoming training events and conferences. • Online Community Get in touch with other members of the .NET community. Includes links to Web sites and newsgroups. • Headlines View the latest news on .NET. • Search Online Search the MSDN Online Library for technical material such as published articles on .NET. • Downloads Download trial applications and example programs from the Web sites featured here. • XML Web Services Find registered XML Web services that you can then use in your own programs. XML Web services are also known as ASP.NET Web services. Youll learn more about Web services in Chapter 17. • Web Hosting A Web hosting company can take your program and run it for you. It takes care of the computers on which your program runs. Use the Web Hosting link to view companies that provide these services. • My Profile Set items such as your required keyboard scheme and window layout.Click these links and explore the information provided. As youll see, theres a lot ofinformation about .NET on the Internet.Creating a New ProjectWhen youre finished examining the information in the previous links, create a newproject by clicking the New Project button on the Get Started page.Note You can also create a new project by selecting File ➣ New ➣ Project, or by pressing Ctrl+Shift+N on your keyboard.When you create a new project, VS .NET displays the New Project dialog box, whichyou use to select the type of project you want to create. You also enter the name andlocation of your new project; the location is the directory where you want to store thefiles for your project.Because youre going to be creating a C# console application, select Visual C# Projectsfrom the Project Types section on the left of the New Project dialog box, and selectConsole Application from the Templates section on the right. EnterMyConsoleApplication in the Name field, and keep the default directory in the Locationfield. Figure 1.2 shows the completed New Project dialog box with these settings.Figure 1.2: The New Project dialog box with the appropriate settings for a C# consoleapplicationClick the OK button to create the new project.Working in the VS .NET EnvironmentOnce youve created a new project, the main development screen is displayed (see Figure1.3). This screen is the environment in which youll develop your project. As you can see,VS .NET has already created some starting code for you. This code is a skeleton for yourprogram; youll see how to modify it shortly. In this section, Ill give you a briefdescription of the different parts of the VS .NET environment.Figure 1.3: The VS .NET environmentNote Depending on your settings for VS .NET, your s ...
Tìm kiếm theo từ khóa liên quan:
kĩ thuật lập trình công nghệ thông tin lập trình ngôn ngữ lập trình C Shark C# sybex - c.sharp database programming Introducing Visual Studio .NETGợi ý tài liệu liên quan:
-
52 trang 413 1 0
-
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 293 0 0 -
Báo cáo thực tập thực tế: Nghiên cứu và xây dựng website bằng Wordpress
24 trang 287 0 0 -
74 trang 277 0 0
-
96 trang 277 0 0
-
Tài liệu dạy học môn Tin học trong chương trình đào tạo trình độ cao đẳng
348 trang 265 1 0 -
Đồ án tốt nghiệp: Xây dựng ứng dụng di động android quản lý khách hàng cắt tóc
81 trang 262 0 0 -
Giáo trình Lập trình hướng đối tượng: Phần 2
154 trang 258 0 0 -
EBay - Internet và câu chuyện thần kỳ: Phần 1
143 trang 253 0 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 247 0 0