List of Listings


Chapter 1: Creating a Custom Control—StyledTextArea

Listing 1-1: A Simple Custom Control That Paints Its Own GUI
Listing 1-2: Using the RoundButton Control
Listing 1-3: Detecting Key Presses
Listing 1-4: The Observer Design Pattern at Work
Listing 1-5: Overriding Equals
Listing 1-6: Declaring the Delegates
Listing 1-7: ColumnEventArgs
Listing 1-8: LineEventArgs
Listing 1-9: LineCountEventArgs
Listing 1-10: LongestLineEventArgs
Listing 1-11: CharCount
Listing 1-12: LongestLineCharCount
Listing 1-13: DeleteChar
Listing 1-14: InsertChar
Listing 1-15: InsertData

Chapter 2: Building an XML Document Editor

Listing 2-1: An XML Document
Listing 2-2: An XML Document, Not Well-Formed
Listing 2-3: A Valid XML Document with an Internal DTD
Listing 2-4: A Valid XML Document with a Private External DTD
Listing 2-5: An XML Document with an Entity
Listing 2-6: An XML Document with an Entity's Value
Listing 2-7: An XML Document with Elements and Attributes
Listing 2-8: Using an Inline Schema
Listing 2-9: Reading an XML Document
Listing 2-10: Validating an XML Document
Listing 2-11: Writing to an XML Document
Listing 2-12: Traversing Nodes in an XML Document
Listing 2-13: The Input
Listing 2-14: The Output
Listing 2-15: Creating the Menu Items in an MDI Container
Listing 2-16: Constructing the Menu Items in the Child Document
Listing 2-17: Using the Button Property
Listing 2-18: A Singleton Form
Listing 2-19: The Template for Printing
Listing 2-20: The Form with Code That Prints
Listing 2-21: Using PrintDialog
Listing 2-22: The Form Class That Allows the User to Change the Page Setup
Listing 2-23: The Complete Code with Page Setup and Print Preview
Listing 2-24: The Find Method
Listing 2-25: The Replace Method
Listing 2-26: Validating Using Read
Listing 2-27: Parsing the Error
Listing 2-28: IndexTabPage
Listing 2-29: build.bat

Chapter 3: Writing Games

Listing 3-1: The News Tickers Example
Listing 3-2: A Splash Screen Using the Windows-Based Timer
Listing 3-3: Displaying a Splash Screen Using a Server-Based Timer
Listing 3-4: The String Representing the Maze

Chapter 4: Creating a UML Class Diagram Editor

Listing 4-1: Using Different Caps
Listing 4-2: Drawing Your Own Cap
Listing 4-3: Applying Anti-Aliasing
Listing 4-4: Applying Rotation
Listing 4-5: Applying Translation
Listing 4-6: The DrawArea Class
Listing 4-7: The Form
Listing 4-8: The DrawArea Class That Captures the MouseMove Event
Listing 4-9: A Class Implementing the ISerializable Interface
Listing 4-10: Serializing Objects
Listing 4-11: BinaryFormatter Example
Listing 4-12: SoapFormatter Example
Listing 4-13: The ShapeType Enumeration
Listing 4-14: The RectHandle Enumeration
Listing 4-15: The LineHandle Enumeration
Listing 4-16: The RectPart Enumeration
Listing 4-17: The States Class
Listing 4-18: The MathUtil Class
Listing 4-19: The Rect Class
Listing 4-20: The ClassRect Class
Listing 4-21: The ClassRectMemento Class
Listing 4-22: The InterfaceRect Class
Listing 4-23: The InterfaceRectMemento Class
Listing 4-24: The InputBox Class
Listing 4-25: The LineMemento Class

Chapter 5: Developing an FTP Client Application

Listing 5-1: The Connect Method
Listing 5-2: The PassiveData Method
Listing 5-3: The GetResponse Method
Listing 5-4: The Login Method
Listing 5-5: The SendCommand Method
Listing 5-6: The SendCWDCommand Method
Listing 5-7: The SendDELECommand Method
Listing 5-8: The SendLISTCommand Method
Listing 5-9: The SendMKDCommand Method
Listing 5-10: The SendPWDCommand Method
Listing 5-11: The SendRMDCommand Method
Listing 5-12: The SendQUITCommand Method
Listing 5-13: The SendRETRCommand Method
Listing 5-14: The SendSTORCommand Method
Listing 5-15: The SendSYSTCommand Method
Listing 5-16: The SendTYPECommand Method
Listing 5-17: The Main Method

Chapter 6: Building an Online Store

Listing 6-1: Using a Data Reader Object
Listing 6-2: Populating a DataSet Object Programmatically
Listing 6-3: Populating a DataSet with Data from a Database
Listing 6-4: Adding a Record into a Table
Listing 6-5: Updating Records
Listing 6-6: Deleting Records
Listing 6-7: Using Parameters to Modify Data
Listing 6-8: Using the CommandBuilder Object
Listing 6-9: Simple Data Binding
Listing 6-10: Data Binding an Array to a ListBox Control
Listing 6-11: Populating a Control Programmatically
Listing 6-12: Using AutoPostBack to Update Values
Listing 6-13: Data Binding to a ListBox Control
Listing 6-14: Data Editing with a DataGrid Control
Listing 6-15: Data Paging with a DataGrid Control
Listing 6-16: Defining Two Keys in the <appSettings> Element
Listing 6-17: Accessing the Custom Application Settings
Listing 6-18: Using the <browserCaps> Setting
Listing 6-19: Using the <customErrors> Setting
Listing 6-20: Using the <httpRuntime> Setting
Listing 6-21: Using the <pages> Setting
Listing 6-22: Using the <trace> Setting
Listing 6-23: Using the <location> Setting
Listing 6-24: The global.asax File Containing a Server-Side Object Tag
Listing 6-25: Using the Static Object in an ASP.NET Page
Listing 6-26: Utilizing the Event Handlers in a global.asax File
Listing 6-27: The MyFirstClass Class (MyFirstClass.vb)
Listing 6-28: Testing the Assembly in the Global Assembly Cache
Listing 6-29: The web.config File
Listing 6-30: The Login.aspx File
Listing 6-31: The web.config File
Listing 6-32: The Login.aspx File
Listing 6-33: The ShoppingItem Class
Listing 6-34: The Header User Control
Listing 6-35: The Footer User Control
Listing 6-36: The Menu User Control
Listing 6-37: The Menu Class




Real World. NET Applications
Real-World .NET Applications
ISBN: 1590590821
EAN: 2147483647
Year: 2005
Pages: 82

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net