Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Start Here!™: Learn Microsoft® Visual C#® 2010
Introduction
Who Should Read This Book
Assumptions
Who Should Not Read This Book
Organization of This Book
Free eBook Reference
Conventions and Features in This Book
System Requirements
Code Samples
Installing the Code Samples
Using the Code Samples
Acknowledgments
Errata & Book Support
We Want to Hear from You
Stay in Touch
1. Getting to Know C#
Obtaining and Installing Visual Studio 2010 Express
Downloading the Products
Installing Visual C# 2010 Express
Installing Visual Web Developer 2010 Express
Installing Visual Studio 2010 Service Pack 1
Starting Visual C# 2010 Express
Creating the No-Code Web Browser
Creating a New Windows Forms Application Project
Saving Your Project
Adding Windows Forms Controls
Configuring the Windows Forms Controls
Testing the Windows Forms Application
Viewing the Web Browser Code
Ending Your Session
Creating the No-Code WPF Web Browser
Starting a New WPF Application Project
Adding WPF Controls
Configuring the WPF Controls
Trying the WPF Application
Viewing the WPF Code
Creating the No Code WPF Browser Application
Setting Internet Explorer as the Default
Starting a WPF Browser Application Project
Creating the WPF Browser Application
Adding WPF Browser Controls
Configuring the WPF Browser Controls
Trying the WPF Browser Application
Viewing the WPF Browser Code
Get Going with C#
2. Developing a Web Project
Starting Visual Web Developer 2010 Express
Creating the No-Code Project
Starting the New Project
Understanding the Default Site
Looking at the Elements
Working with the Master Page
Changing the Default.aspx Content
Viewing the Master.Site File Code
Viewing the Site in a Browser
Creating the No Code Website
Defining a Website Location
Adding a New Page
Adding the Page to the Site Menu
Trying the Site in a Browser
Get Going with C#
3. Basic Data Manipulation Techniques
Understanding LINQ
Creating the List Project
Starting the List Project
Adding the Controls
Configuring the Controls
Using the Code Editor
Using the Double-Click Method
Choosing an Event Directly
Using the Right-Click Method
Understanding the Code Editor Features
Writing Some Simple Code
Testing the List Application
Tracing the List Application with the Debugger
Discovering Application Functionality Through Tracing
Creating a Breakpoint
Viewing Application Data
Testing a Theory
Changing the TextBox Data
Selecting Other Elements
Creating the List 2 Project
Starting the Second List Project
Copying the Controls
Finessing the Controls
Adding the Extended Code
Tracing Through the Extended Example
Understanding Data Types
Changing the Code to Match the Data Type
Mixing Data Types in the Text Box
Testing Selection Theories
Skipping TextBox Elements
Selecting Specific TextBox Elements
Get Going with C#
4. Using Collections to Store Data
Understanding Arrays
Creating the Array Project
Starting the Array Project
Adding the Array Project Controls
Configuring the Array Project Controls
Adding the Array Code
Tracing Through the Array Example
Testing Looping Theories
Testing Conditional Theories
Understanding Dictionaries
Creating the Dictionary Project
Starting the Dictionary Project
Adding the Dictionary Project Controls
Configuring the Dictionary Project Controls
Adding the Dictionary Code
Tracing Through the Dictionary Example
Testing Sorting Theories
Testing Statistical Theories
Understanding Structures
Creating the Structure Project
Starting the Structure Project
Adding the Structure Project Controls
Configuring the Structure Project Controls
Creating a Structure
Adding the Structure Example Code
Tracing Through the Structure Example
Get Going with C#
5. Working with XML
Understanding XML
Combining XML and LINQ
Defining the XML_LINQ Project
Adding and Configuring the XML_LINQ Controls
Using the System.Xml.Linq Namespace
Adding the XML_LINQ Code
Developing the XMLSave Application
Creating the XMLSave Project
Adding and Configuring the XMLSave Controls
Adding XMLSave Application Code
Testing the XMLSave Application
Viewing the XMLSave Output
Developing the XMLRead Application
Creating the XMLRead Project
Adding and Configuring the XMLRead Controls
Adding the XMLRead Application Code
Testing the XMLRead Application
Tracing the XMLRead Application with the Debugger
Handling XML Exceptions
Using XML to Store Application Settings
Creating the XMLSetting Project
Adding and Configuring the XMLSetting Controls
Adding the XMLSetting Application Code
Saving the Settings
Restoring the Settings
Defining the Using Statements
Testing the XMLSetting Application
Get Going with C#
6. Accessing a Web Service
Defining Web Services
Web Services and XML
Working with REST Web Services
Working with SOAP Web Services
Developing the REST Web Service Application
Creating the RESTService Project
Adding and Configuring the RESTService Controls
Adding the RESTService Application Code
Creating the Global Variables
Getting a Forecast
Displaying the Data
Initializing the Application
Selecting the Next and Previous Forecasts
Entering a New Location
Choosing a Different Icon
Testing the RESTService Application
Developing the SOAP Web Service Application
Creating the SOAPService Project
Adding and Configuring the SOAPService Controls
Adding the SOAPService Application Code
Testing the SOAPService Application
Get Going with C#
7. Using the Windows Presentation Foundation
Considering the WPF Differences with Windows Forms Applications
Understanding XAML
Developing the WPF Data Store Application
Creating the WPF_XML Project
Adding and Configuring the WPF_XML Controls
Adding the WPF_XML Application Code
Defining the Using Statements
Ending the Application
Saving the Settings
Restoring the Settings
Testing the WPF_XML Application
Tracing the WPF_XML Application with the Debugger
Developing the WPF SOAP Web Service Application
Creating the WPFSOAPService Project
Adding a New Service Data Source
Adding and Configuring the WPFSOAPService Controls
Adding the WPFSOAPService Application Code
Testing the WPFSOAPService Application
Developing the EmbeddedSource Application
Starting the EmbeddedSource Project
Creating an Embedded Resource
Adding and Configuring the EmbeddedSource Controls
Adding the EmbeddedSource Application Code
Adding the Required using Statements
Performing the Application Setup
Moving Between Items
Testing the EmbeddedSource Application
Tracing the EmbeddedSource Application with the Debugger
Get Going with C#
8. Working with Libraries
Understanding Reusable Code
Considering How Classes Work
Defining Methods
Defining Properties
Understanding Fields versus Properties
Defining Events
Using Enumerations
Understanding Structures
Creating the UseLibrary Solution
Starting the TestLibrary Project
Adding the TestLibrary Code
Creating a Constructor
Defining an Enumeration
Creating the Private Variables and Public Properties
Defining a Structure
Describing Events
Developing Methods
Adding the TestApplication Project
Starting the TestApplication Project
Setting TestApplication as the Startup Project
Defining the TestLibrary Reference
Adding and Configuring the TestApplication Controls
Adding the TestApplication Application Code
Adding the Required Using Statements
Configuring the Application
Displaying the Ball Data
Adding and Removing Balls
Moving Between Balls
Displaying a List of Balls
Handling Class Events
Testing the UseLibrary Application
Get Going with C#
9. Creating Utility Applications
Working at the Command Line
Opening and Using the Command Line
Understanding Utility Application Uses
Creating the Console Application
Defining Command-Line Parameters
Creating the Main() Method
Offering Help at the Command Line
Checking for Required Arguments
Checking for Optional Arguments
Testing the DisplayDate Application
Opening the Command Line
Checking the Help Functionality
Displaying a Date
Tracing the DisplayDate Application with the Debugger
Setting the Command-Line Arguments
Performing the Trace
Get Going with C#
10. Using LINQ in Web Applications
Creating the WebList Project
Starting the WebList Project
Adding and Configuring the WebList Project Controls
Defining the using Statement
Adding the WebList Project Code
Tracing Through the WebList Project Example
Creating the WebArray Project
Starting the WebArray Project
Adding and Configuring the WebArray Project Controls
Adding the WebArray Code
Creating the Array
Developing the LINQ Version
Developing the Loop Version
Developing the Conditional Loop Version
Tracing Through the WebArray Example
Creating the WebStructure Project
Starting the WebStructure Project
Adding and Configuring the WebStructure Project Controls
Adding the WebStructure Code
Defining the Data Structure
Loading the Page
Showing an Entry
Moving Between Records
Tracing Through the Structure Example
Get Going with C#
11. Working with Silverlight Applications
Understanding the Silverlight Development Difference
Developing a Basic Silverlight Application
Starting the BasicSilverlight Application
Adding and Configuring the BasicSilverlight Project Controls
Adding the BasicSilverlight Project Code
Adding the Required Using Statement
Initializing the Global Variable
Enabling the Buttons After an Image Loads
Handling Radio Button Clicks
Tracing Through the BasicSilverlight Project Example
Configuring Your Silverlight Application for Debugging
Setting the Browser Configuration
Debugging with Firefox
Adding XML Data Support to a Silverlight Application
Starting the SilverlightXML Application
Adding and Configuring the SilverlightXML Project Controls
Adding the SilverlightXML Project Code
Adding the Required References and Using Statements
Creating the Global Variables
Saving the Settings
Restoring the Settings
Tracing Through the SilverlightXML Project Example
Get Going with C#
12. Debugging Applications
Understanding the Debugging Basics
Stepping Through the Code
Working with the Debug Class
Adding Debug Statements to the Example
Working with the Trace Class
Working with Watches
Using Visualizers
Drilling Down into Data
Understanding the Call Stack
Using the Immediate Window
Working with Exceptions
Understanding an Exception Dialog Box
Communicating with the Administrator Using the Event Log
Get Going with C#
Index
About the Author
← Prev
Back
Next →
← Prev
Back
Next →