30 Microsoft Visual Studio 2010: A Beginner’s GuideFamiliarization with Visual Studio Project TypesVisual Studio includes a plethora of project types, making it easy to build applications with premade templates. The following discussion will show how to find[r]
Chapter 6: Debugging with Visual Studio 177You want the NullReferenceException to be raised because it protects you from performing an invalid operation in your code. After you’ve found the null value and ascertained the reason, it’s time to find out why the value is null in order to m[r]
step into the method call, select the yellow arrow in the margin and drag it back up to the method call. Then you can do a Step Into. Alternatively, if you have one or more statements that you don’t want to execute, drag the yellow arrow in the margin to the statement following the code you don’t wa[r]
194 Microsoft Visual Studio 2010: A Beginner’s Guideoptions found after clicking the arrow button to expand Database Tools and then selecting Table And Database Designers is “Prevent saving changes that require table re-creation.” VS will not allow you to save a foreign key chan[r]
202 Microsoft Visual Studio 2010: A Beginner’s GuideThe default zoom level for the Designer is 100%, but you can change this by right-clicking, select Zoom, and select a zoom level percent. This might be useful if you wanted a higher-level view where you could fit more objects o[r]
consequence of having a bug in your code or improperly shutting down an application.In addition to property settings, you have a plethora of options available via the Options window, which you can open by selecting Tools | Options, as shown in Figure 6-5. Chapter 6: Debugging with Visual S[r]
217Chapter 8Building Desktop Applications with WPF 218 Microsoft Visual Studio 2010: A Beginner’s GuideKey Skills & Concepts● Perform Screen Layout● Use Controls● Work with Data in the UIWindows Presentation Foundation (WPF) is a .NET technology for building desktop appl[r]
Designer being referenced.The other two places you can modify data are in the Class Details and Properties windows. You can see how I added the GradePapers method in Class Details. You can add members to an object yourself by clicking the object in Class Designer, and then adding the member in Class[r]
properly, you can use class library classes and instantiate these externally referenced objects and access or invoke the members as if they were part of the code in your own assembly. The .NET CLR will take care of making sure that your calls to the class library object work transparently behind the[r]
.NET applications, VS will generate code based on the Web controls on the page and then that generated code will be compiled with normal code. Therefore, the term build is more accurate than compile.During a normal build, VS will only build the items in a project or solution that are out of date. Mo[r]
143Chapter 6Debugging with Visual Studio 144 Microsoft Visual Studio 2010: A Beginner’s GuideKey Skills & Concepts● Exploring Available Debugging Tools● Setting Breakpoints● Inspecting Program State● Solving Problems with VS Debugging ToolsMore often than w[r]
application running in the browser and select Install SilverlightDemoCSApplication Onto This Computer, as shown in Figure 10-6.Figure 10-5 Out-of-browser settings 296 Microsoft Visual Studio 2010: A Beginner’s GuideFigure 10-6 Choosing OOBFigure 10-7 Choosing OOB deployment opti[r]
285Chapter 10Designing Silverlight Applications 286 Microsoft Visual Studio 2010: A Beginner’s GuideKey Skills & Concepts● Start a New Silverlight Project● Work with the Silverlight Designer● Add Controls to an Application● Play Silverlight Videos● Deploy Silverlight App[r]
314 Microsoft Visual Studio 2010: A Beginner’s Guide Where cst.CustomerID = custID Select cst).SingleOrDefault() If Not (customer Is Nothing) Then ctx.Customers.DeleteOnSubmit(customer) ctx.SubmitChanges() End If End Sub End ClassThe implementation of CustomerService[r]
same header, menu, sidebars, and footers. When you first build a site, you can duplicate this common content with no trouble, but this copy-and-paste type duplication will cause a lot of headaches in the future. The first time you have to change the common elements, you’ll need to visit every page.[r]
326 Microsoft Visual Studio 2010: A Beginner’s GuideNormally, you don’t want to deploy the App_Data folder because it might hold a database file that is huge and would slow down your application considerably. Of course, if you have SQL Server Express installed at the depl[r]
using the same techniques described in Chapter 7.To add the data source for binding, open the NewOrder window in the Designer, and select the Data | Add New Data Source menu, which opens the Choose A Data Source Type window, shown in Figure 8-11.There are different ways to connect to a data source,[r]
226 Microsoft Visual Studio 2010: A Beginner’s GuideNow 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.Using WPF ControlsWPF includes many controls for helping[r]
249Chapter 9Creating Web Applications with ASP.NET MVC 250 Microsoft Visual Studio 2010: A Beginner’s GuideKey Skills & Concepts● Learn What MVC Means● Create Models● Create Controllers● Create Views● Work with Data in ASP.NET MVCASP.NET is a .NET technology for building[r]
Chapter 1: Introducing Visual Studio 2010 13The choice you make for default environment settings depends a lot on what language or environment you’ll use to write software in. The environment settings choice isn’t locked in stone and can be reset if you decide you don’t like the[r]