« Home « Chủ đề lập trình Visual

Chủ đề : lập trình Visual


Có 100+ tài liệu thuộc chủ đề "lập trình Visual"

Visual studio 2010 part 14

tailieu.vn

As you can see in Figure 5-5, the Assembly Information from the project properties is included with the file. This is convenient for you (or an end user) to be able to open the file and read pertinent information, especially version information, to know you’re working with the correct assembly, for debugging, or just to know what is on your...

Visual studio 2010 part 15

tailieu.vn

One item to draw your attention to in Listing 5-2 is the using directive (Imports in VB), specifying that you can use the types in the ClassLibraryDemo namespace without fully qualifying them. After that, you can see how Listing 5-2 creates instances of Student and myStudent and calls GetStudentGrades.. Next, you’ll want to compile the code to see if the...

Visual studio 2010 part 16

tailieu.vn

Navigating a Project with Class View. In C#, you can open Class view by pressing CTRL - W , C or select Class View from the View menu. In VB you can open Class view by pressing CTRL - SHIFT , C or select View | Other Windows | Class View. Figure 5-12 shows the Class View window.. Notice how...

Visual studio 2010 part 17

tailieu.vn

Beyond setting breakpoints, you’ll learn how to customize breakpoints and how to manage a list of breakpoints. Then you’ll see the options VS has for stepping through code. First, we’ll start with some example code you can use to practice the concepts learned in this chapter.. Example Code for This Chapter. It would take many pages of code to show...

Visual studio 2010 part 18

tailieu.vn

150 Microsoft Visual Studio 2010: A Beginner’s Guide. If you’ve been working on your code and want to update the Call Hierarchy window, click Refresh. Every time you view Call Hierarchy, the selected item is added to the list. You can use the Remove Root button to delete an item from the list. The Toggle Details Pane button shows and...

Visual studio 2010 part 19

tailieu.vn

You can manage all of these breakpoints in a central location by selecting Debug | Windows | Breakpoints, which will show the window in Figure 6-7.. Much of the functionality of the Breakpoints window has been explained already, except that the toolbar options apply to all of the breakpoints that are currently checked.. There are export and import buttons on...

Visual studio 2010 part 20

tailieu.vn

The location of the log file is on the Advanced branch of IntelliTrace in Tools | Options.. Then you can view debugging history to view the state of the application during each event of the session.. The program itself is not particularly sophisticated, but it contains just enough logic to lead you down a rat hole and show you how...

Visual studio 2010 part 21

tailieu.vn

M ost of the work we do each day involves data, and most of the data we work with comes from databases. Because of the importance of data in our applications, this chapter introduces how to work with data in VS. It’s very important to learn the concepts in this chapter because it will affect all of the work you...

Visual studio 2010 part 22

tailieu.vn

Now that you know how to create databases, tables, and stored procedures, you’ll need to know how to use your database from code. The rest of this chapter shows you how to use LINQ to work with data. First, we’ll look at the basic syntax of LINQ through LINQ to Objects and then follow with working with SQL Server through...

Visual studio 2010 part 23

tailieu.vn

Handling Data with LINQ to SQL. The LINQ to SQL provider allows you to communicate with SQL Server databases. There are many other types of providers, such as LINQ to Entities for generic databases (which includes SQL Server), LINQ to XML for XML data sources, and LINQ to Oracle for Oracle databases. The preceding section showed you how to use...

Visual studio 2010 part 24

tailieu.vn

Work with Data in the UI. The result of building a WPF application is an *.exe file that you can run directly on your computer or deploy and run on any other computer that has .NET installed. With WPF, you can add a graphical user interface (GUI), pronounced “Gooey,”. This chapter will show you how to lay out a screen...

Visual studio 2010 part 25

tailieu.vn

Now that you know how to use the layout controls, the next section takes a closer look at WPF controls in general, giving you tips on how to use them in your application.. Data controls are excluded on purpose because the section following controls is “Working with Data in WPF.” Before diving into each control, let’s do an overview of...

Visual studio 2010 part 26

tailieu.vn

As you know, you can instantiate classes and call their methods, which is the technique you’ll use to open this window from the NewOrder_Click event handler in the code-behind of the MainWindow window.. In practice, you’ll populate the NewOrder window with whatever controls you need to implement a new order. However, we’ll skip that task for now because the current...

Visual studio 2010 part 27

tailieu.vn

Applications with ASP.NET MVC. Work with Data in ASP.NET MVC. A SP.NET is a .NET technology for building Web applications. This chapter shows you how to use ASP.NET MVC. You’ll learn about how MVC works and how it is implemented in ASP.NET MVC. Understanding ASP.NET MVC. The essential piece of knowledge required to be successful with ASP.NET MVC is the...

Visual studio 2010 part 28

tailieu.vn

For ASP.NET MVC, the important part of the URL is /Home/About. Home is the name of the Controller, and ASP.NET MVC appends Controller to the URL name, looking for the HomeController class, shown in Listing 9-1, physically located in the Controller folder, which is why it’s important to ensure you create files in the proper locations. About is an action,...

Visual studio 2010 part 29

tailieu.vn

Routing works by pattern matching, which you can see through the two statements in the RegisterRoutes method: IgnoreRoute and MapRoute. The first parameter is the name of the route. Therefore, ASP.NET MVC will append “Controller” to the URL segment that matches {controller}, meaning that the Controller name to instantiate is HomeController. The third parameter for MapRoute specifies default values, where...

Visual studio 2010 part 30

tailieu.vn

Work with the Silverlight Designer. What you’ll learn in this chapter is how VS helps you create a Silverlight project, how to add controls to the Silverlight designer, and how to deploy Silverlight applications.. After you set up the project with a name and folder, VS will display another window for configuring the Silverlight application, shown in Figure 10-1.. Silverlight...

Visual studio 2010 part 31

tailieu.vn

It would really be helpful for you to review Chapter 8 because you’ll find many of the same controls for layout and display in both Silverlight and WPF.. The following steps show how to design a screen that shows a video, as shown in Figure 10-3.. If the XAML editor is showing, click on the Design tab at the bottom...

Visual studio 2010 part 32

tailieu.vn

Create a Web Service. Deploy a Web Service. Write a Client That Consumes the Web Service. A Web service is software that provides functionality that can be used by any other software application, using any programming language, on any hardware and operating system that can communicate over a network.. Examples of private Web services might be the ability for multiple...

Visual studio 2010 part 33

tailieu.vn

314 Microsoft Visual Studio 2010: A Beginner’s Guide. The implementation of CustomerService is similar to what you’ve seen in previous chapters. We’ll soon get to the section of this chapter that shows how to consume a Web service, but you must understand that a Web service is a component that you communicate with over a network. In previous chapters, you’ve...