Difference between revisions of "C Sharp Essentials"

From Techotopia
Jump to: navigation, search
 
(69 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
The C# Essentials online book contains 28 chapters of detailed information intended to provide everything necessary to gain proficiency as a C# programmer.
 +
 +
<table border="0" cellspacing="0" width="100%">
 +
<tr>
 +
<td width="20%"><td align="center">[[C Sharp Essentials|Table of Contents]]<td width="20%" align="right">[[About C Sharp Essentials|Next]]</td>
 +
<tr>
 +
<td width="20%"><td align="center"><td width="20%" align="right">About C# Essentials</td>
 +
</table>
 +
<hr>
 +
 +
 +
<htmlet>csharp</htmlet>
 +
 +
 +
© 2012 Neil Smyth / Payload Media. This eBook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited. All rights reserved.
 +
 +
 +
== Table of Contents ==
 +
 +
<table>
 +
<tr>
 +
<td>
 +
# [[About C Sharp Essentials|About C# Essentials]]<br><br>
 
# [[The C Sharp Language and Environment|The C# Language and Environment]]
 
# [[The C Sharp Language and Environment|The C# Language and Environment]]
 
#* [[The C Sharp Language and Environment|A Brief History of Computer Programming Languages]]
 
#* [[The C Sharp Language and Environment|A Brief History of Computer Programming Languages]]
Line 7: Line 30:
 
#* [[The C Sharp Language and Environment|Common Type System (CTS) & Common Language Specification (CLS)]]
 
#* [[The C Sharp Language and Environment|Common Type System (CTS) & Common Language Specification (CLS)]]
 
#* [[The C Sharp Language and Environment|The Framework (Base Class and Framework Class Libraries)]]
 
#* [[The C Sharp Language and Environment|The Framework (Base Class and Framework Class Libraries)]]
#* [[The C Sharp Language and Environment|Non Microsoft Implementations of the CLI]]<br><br>
+
#* [[The C Sharp Language and Environment|Non Microsoft Implementations of the CLI]]<br><br><htmlet>ezoictoc1</htmlet>
 
# [[A Simple C Sharp Console Application|A Simple C# Console Application]]
 
# [[A Simple C Sharp Console Application|A Simple C# Console Application]]
 
#* [[A Simple C Sharp Console Application|Options for Installing a C# Environment]]
 
#* [[A Simple C Sharp Console Application|Options for Installing a C# Environment]]
Line 15: Line 38:
 
#* [[A Simple C Sharp Console Application|Executing a Compiled C# Program]]<br><br>
 
#* [[A Simple C Sharp Console Application|Executing a Compiled C# Program]]<br><br>
 
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Creating a Simple C# GUI Application with Visual Studio]]
 
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Creating a Simple C# GUI Application with Visual Studio]]
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Installing Visual Studio with C# Support]]
+
#* [[Creating a Simple C Sharp GUI Application with Visual Studio|Installing Visual Studio with C# Support]]
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Creating a new Visual Studio C# Project]]
+
#* [[Creating a Simple C Sharp GUI Application with Visual Studio|Creating a new Visual Studio C# Project]]
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Adding Components to the Windows Form]]
+
#* [[Creating a Simple C Sharp GUI Application with Visual Studio|Adding Components to the Windows Form]]
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Changing Component Names]]
+
#* [[Creating a Simple C Sharp GUI Application with Visual Studio|Changing Component Names]]
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Changing Component Properties]]
+
#* [[Creating a Simple C Sharp GUI Application with Visual Studio|Changing Component Properties]]
# [[Creating a Simple C Sharp GUI Application with Visual Studio|Adding Behavior to a Visual Studio C# Application]]
+
#* [[Creating a Simple C Sharp GUI Application with Visual Studio|Adding Behavior to a Visual Studio C# Application]]<br><br>
 +
# [[C Sharp Variables and Constants|C# Variables and Constants]]
 +
#* [[C Sharp Variables and Constants|What is a C# Variable?]]
 +
#* [[C Sharp Variables and Constants|What is a C# Constant?]]
 +
#* [[C Sharp Variables and Constants|C# Integer Variable Types]]
 +
#* [[C Sharp Variables and Constants|C# Floating Point Variables]]
 +
#* [[C Sharp Variables and Constants|The C# Decimal Variable Type]]
 +
#* [[C Sharp Variables and Constants|C# Boolean Variable Type]]
 +
#* [[C Sharp Variables and Constants|C# Character Variable Type]]
 +
#* [[C Sharp Variables and Constants|C# String Variables]]
 +
#* [[C Sharp Variables and Constants|Casting Variable Types in C#]]<br><br>
 +
# [[C Sharp Operators and Expressions|C# Operators and Expressions]]
 +
#* [[C Sharp Operators and Expressions|What is an Expression?]]
 +
#* [[C Sharp Operators and Expressions|The Basic Assignment Operator]]
 +
#* [[C Sharp Operators and Expressions|C# Arithmetic Operators]]
 +
#* [[C Sharp Operators and Expressions|C# Operator Precedence]]
 +
#* [[C Sharp Operators and Expressions|Compound Assignment Operators]]
 +
#* [[C Sharp Operators and Expressions|Increment and Decrement Operators]]
 +
#* [[C Sharp Operators and Expressions|Comparison Operators]]
 +
#* [[C Sharp Operators and Expressions|Boolean Logical Operators]]
 +
#* [[C Sharp Operators and Expressions|The Ternary Operator]]<br><br>
 +
# [[C Sharp Flow Control with if and else|C# Flow Control Using if and else]]
 +
#* [[C Sharp Flow Control with if and else|Using the if Statement]]
 +
#* [[C Sharp Flow Control with if and else|Using if ... else .. Statements]]
 +
#* [[C Sharp Flow Control with if and else|Using if ... else if .. Statements]]<br><br><htmlet>ezoictoc2</htmlet>
 +
# [[The C Sharp switch Statement|The C# switch Statement]]
 +
#* [[The C Sharp switch Statement|Why Use a switch Statement?]]
 +
#* [[The C Sharp switch Statement|Using the switch Statement Syntax]]
 +
#* [[The C Sharp switch Statement|A switch Statement Example]]
 +
#* [[The C Sharp switch Statement|Explaining the Example]]
 +
#* [[The C Sharp switch Statement|Using goto in a C# switch Statement]]
 +
#* [[The C Sharp switch Statement|Using continue in a C# switch Statement]]<br><br>
 +
# [[C Sharp Looping - The for Statement|C# Looping - The for Statement]]
 +
#* [[C Sharp Looping - The for Statement|The C# for Loop]]
 +
#* [[C Sharp Looping - The for Statement|C# Loop Variable Scope]]
 +
#* [[C Sharp Looping - The for Statement|Creating an Infinite for Loop]]
 +
#* [[C Sharp Looping - The for Statement|Breaking Out of a for Loop]]
 +
#* [[C Sharp Looping - The for Statement|Nested for Loops]]
 +
#* [[C Sharp Looping - The for Statement|Breaking From Nested Loops]]
 +
#* [[C Sharp Looping - The for Statement|Continuing for Loops]]<br><br>
 +
# [[C Sharp Looping with do and while Statements|C# Looping with do and while Statements]]
 +
#* [[C Sharp Looping with do and while Statements|The C# while Loop]]
 +
#* [[C Sharp Looping with do and while Statements|C# do ... while loops]]
 +
#* [[C Sharp Looping with do and while Statements|Breaking from Loops]]
 +
#* [[C Sharp Looping with do and while Statements|The continue Statement]]<br><br>
 +
# [[C Sharp Object Oriented Programming|C# Object Oriented Programming]]
 +
#* [[C Sharp Object Oriented Programming|What is an Object?]]
 +
#* [[C Sharp Object Oriented Programming|What is a Class?]]
 +
#* [[C Sharp Object Oriented Programming|Declaring a C# Class]]
 +
#* [[C Sharp Object Oriented Programming|Creating C# Class Members]]
 +
#* [[C Sharp Object Oriented Programming|Static, Read-only and Const Data Members]]
 +
#* [[C Sharp Object Oriented Programming|Instantiating an Object from a C# Class]]
 +
#* [[C Sharp Object Oriented Programming|Accessing C# Object Members]]
 +
#* [[C Sharp Object Oriented Programming|Adding Methods to a C# Class]]
 +
#* [[C Sharp Object Oriented Programming|C# Constructors and Finalizers]]<br><br>
 +
# [[C Sharp Inheritance|C# Inheritance]]
 +
#* [[C Sharp Inheritance|What is Inheritance?]]
 +
#* [[C Sharp Inheritance|An Example of Inheritance]]
 +
#* [[C Sharp Inheritance|Creating a Subclass in C#]]
 +
#* [[C Sharp Inheritance|Passing Arguments to the Base Class Constructor]]<br><br>
 +
# [[Understanding C Sharp Abstract Classes|Understanding C# Abstract Classes]]
 +
#* [[Understanding C Sharp Abstract Classes|What is a C# Abstract Class?]]
 +
#* [[Understanding C Sharp Abstract Classes|Abstract Members]]
 +
#* [[Understanding C Sharp Abstract Classes|Declaring a C# Abstract Class]]
 +
#* [[Understanding C Sharp Abstract Classes|Deriving from an Abstract Class]]
 +
#* [[Understanding C Sharp Abstract Classes|The Difference Between abstract and virtual Members]]<br><br>
 +
# [[Introducing C Sharp Arrays|Introducing C# Arrays]]
 +
#* [[Introducing C Sharp Arrays|Creating Arrays in C#]]
 +
#* [[Introducing C Sharp Arrays|Declaring a Multidimensional Array]]
 +
#* [[Introducing C Sharp Arrays|Accessing Array Values]]
 +
#* [[Introducing C Sharp Arrays|Getting the Length of an Array]]
 +
#* [[Introducing C Sharp Arrays|Sorting and Manipulating C# Arrays]]<br><br>
 +
# [[C Sharp List and ArrayList Collections|C# List and ArrayList Collections]]
 +
#* [[C Sharp List and ArrayList Collections|What are C# Collection Classes]]
 +
#* [[C Sharp List and ArrayList Collections|Creating C# List Collections - List<T> and ArrayList]]
 +
#* [[C Sharp List and ArrayList Collections|Adding Items to Lists]]
 +
#* [[C Sharp List and ArrayList Collections|Accessing List Items]]
 +
#* [[C Sharp List and ArrayList Collections|Removing Items From Lists]]
 +
#* [[C Sharp List and ArrayList Collections|Inserting Items into a C# List]]
 +
#* [[C Sharp List and ArrayList Collections|Sorting Lists in C#]]
 +
#* [[C Sharp List and ArrayList Collections|Finding Items in a C# List or ArrayList]]
 +
#* [[C Sharp List and ArrayList Collections|Obtaining Information About a List]]
 +
#* [[C Sharp List and ArrayList Collections|Clearing and Trimming C# Lists]]<br><br><htmlet>ezoictoc3</htmlet>
 +
# [[Working with Strings in C Sharp|Working with Strings in C#]]
 +
#* [[Working with Strings in C Sharp|Creating Strings in C#]]
 +
#* [[Working with Strings in C Sharp|Obtaining the Length of a C# String]]
 +
#* [[Working with Strings in C Sharp|Treating Strings as Arrays]]
 +
#* [[Working with Strings in C Sharp|Concatenating Strings in C#]]
 +
#* [[Working with Strings in C Sharp|Comparing Strings in C#]]
 +
#* [[Working with Strings in C Sharp|Changing String Case]]
 +
#* [[Working with Strings in C Sharp|Splitting a C# String into Multiple Parts]]
 +
#* [[Working with Strings in C Sharp|Trimming and Padding C# Strings]]
 +
#* [[Working with Strings in C Sharp|C# String Replacement]]<br><br>
 +
# [[Formatting Strings in C Sharp|Formatting Strings in C#]]
 +
#* [[Formatting Strings in C Sharp|The Syntax of the String.Format() Method]]
 +
#* [[Formatting Strings in C Sharp|A Simple C# String Format Example]]
 +
#* [[Formatting Strings in C Sharp|Using Format Controls]]
 +
#* [[Formatting Strings in C Sharp|As Simple Format Control Example]]
 +
#* [[Formatting Strings in C Sharp|The C# String.Format() Format Controls]]<br><br>
 +
# [[Working with Dates and Times in C Sharp|Working with Dates and Times in C#]]
 +
#* [[Working with Dates and Times in C Sharp|Creating a C# Date Time Objects]]
 +
#* [[Working with Dates and Times in C Sharp|Getting the Current System Time and Date]]
 +
#* [[Working with Dates and Times in C Sharp|Adding or Subtracting from Dates and Times]]
 +
#* [[Working with Dates and Times in C Sharp|Retrieving Parts of a Date and Time]]
 +
#* [[Working with Dates and Times in C Sharp|Formating Dates and Times in C#]]<br><br>
 +
# [[C Sharp and Windows Forms|C# and Windows Forms]]
 +
#* [[C Sharp and Windows Forms|Creating a New Form]]
 +
#* [[C Sharp and Windows Forms|Changing the Form Name]]
 +
#* [[C Sharp and Windows Forms|Changing the Form Title]]
 +
#* [[C Sharp and Windows Forms|Changing the Form Background Color]]
 +
#* [[C Sharp and Windows Forms|Changing The Form Background Image]]
 +
#* [[C Sharp and Windows Forms|Configuring the Minimize, Maximize and Close Buttons]]
 +
#* [[C Sharp and Windows Forms|Setting Minimum and Maximum Form Sizes]]
 +
#* [[C Sharp and Windows Forms|Specifying the Position of a Form on the Display]]
 +
#* [[C Sharp and Windows Forms|Changing the Form Border]]
 +
#* [[C Sharp and Windows Forms|Stopping a Form from Appearing the Windows Taskbar]]
 +
#* [[C Sharp and Windows Forms|Creating a Transparent Form]]<br><br>
 +
# [[Designing Forms in C Sharp and Visual Studio|Designing Forms in C# and Visual Studio]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Visual Basic Forms and Controls]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Double Clicking the Control in the Toolbox]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Dragging a Dropping Controls onto the Form]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Drawing a Control on the Form]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Positioning and Sizing Controls Using the Grid]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Positioning Controls Using Snap Lines]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Selecting Multiple Controls]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Aligning and Sizing Groups of Controls]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Setting Properties on a Group of Controls]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Anchoring and Autosizing Form Controls]]
 +
#* [[Designing Forms in C Sharp and Visual Studio|Setting Tab Order in a Form]]<br><br>
 +
# [[Understanding C Sharp GUI Events|Understanding C# GUI Events]]
 +
#* [[Understanding C Sharp GUI Events|Event Triggers]]
 +
#* [[Understanding C Sharp GUI Events|Wiring Up Events in Visual Studio]]
 +
#* [[Understanding C Sharp GUI Events|Compile and Running the Application]]
 +
#* [[Understanding C Sharp GUI Events|Setting Up a C# Timer Event]]<br><br>
 +
# [[C Sharp Events and Event Parameters|C# Events and Event Parameters]]
 +
#* [[C Sharp Events and Event Parameters|The Anatomy of an Event Handler]]
 +
#* [[C Sharp Events and Event Parameters|A C# EventArgs Example]]
 +
#* [[C Sharp Events and Event Parameters|C# EventArg Object Properties]]
 +
#* [[C Sharp Events and Event Parameters|Identifying which Mouse Button was Clicked]]<br><br>
 +
# [[Hiding and Showing Forms in C Sharp|Hiding and Showing Forms in C#]]
 +
#* [[Hiding and Showing Forms in C Sharp|Creating a C# Application Containing Multiple Forms]]
 +
#* [[Hiding and Showing Forms in C Sharp|Understanding Modal and Non-modal Forms]]
 +
#* [[Hiding and Showing Forms in C Sharp|Writing C# Code to Display a Non-Modal Form]]
 +
#* [[Hiding and Showing Forms in C Sharp|Writing C# Code to Display a Modal Form]]
 +
#* [[Hiding and Showing Forms in C Sharp|Hiding Forms in C#]]
 +
#* [[Hiding and Showing Forms in C Sharp|Closing Forms in C#]]<br><br>
 +
# [[Creating Top-Level Menus in C Sharp|Creating Top-Level Menus in C#]]
 +
#* [[Creating Top-Level Menus in C Sharp|Creating a Top-Level Menu]]
 +
#* [[Creating Top-Level Menus in C Sharp|Deleting and Moving Menu Items]]
 +
#* [[Creating Top-Level Menus in C Sharp|Assigning Keyboard Shortcuts to Menu Items]]
 +
#* [[Creating Top-Level Menus in C Sharp|Programming Menu Items in C#]]<br><br><htmlet>ezoictoc4</htmlet>
 +
# [[Creating Context Menus in C Sharp|Creating Context Menus in C#]]
 +
#* [[Creating Context Menus in C Sharp|Adding Context Menus to a C# Form]]
 +
#* [[Creating Context Menus in C Sharp|Associating a Component with a Context Menu]]
 +
#* [[Creating Context Menus in C Sharp|Programming C# Context Menu Options]]
 +
#* [[Creating Context Menus in C Sharp|Compiling and Running the Application]]<br><br>
 +
# [[Building a Toolbar with C Sharp and Visual Studio|Building a Toolbar with C# and Visual Studio]]
 +
#* [[Building a Toolbar with C Sharp and Visual Studio|Creating a Toolbar]]
 +
#* [[Building a Toolbar with C Sharp and Visual Studio|Adding Tooltip Text to Toolbar Controls]]
 +
#* [[Building a Toolbar with C Sharp and Visual Studio|Programming Toolbar Controls]]
 +
#* [[Building a Toolbar with C Sharp and Visual Studio|Changing the Toolbar Position]]<br><br>
 +
# [[Drawing Graphics in C Sharp|Drawing Graphics in C#]]
 +
#* [[Drawing Graphics in C Sharp|Persistent Graphics]]
 +
#* [[Drawing Graphics in C Sharp|Creating a Graphics Object]]
 +
#* [[Drawing Graphics in C Sharp|Creating a Pen In C#]]
 +
#* [[Drawing Graphics in C Sharp|Drawing Lines in C#]]
 +
#* [[Drawing Graphics in C Sharp|Drawing Squares and Rectangles in C#]]
 +
#* [[Drawing Graphics in C Sharp|Drawing Ellipses and Circles in C#]]
 +
#* [[Drawing Graphics in C Sharp|Drawing Text with C#]]<br><br>
 +
# [[Using Bitmaps for Persistent Graphics in C Sharp|Using Bitmaps for Persistent Graphics in C#]]
 +
#* [[Using Bitmaps for Persistent Graphics in C Sharp|Why Use Bitmaps for Graphics Persistence in C#?]]
 +
#* [[Using Bitmaps for Persistent Graphics in C Sharp|Creating a Bitmap]]
 +
#* [[Using Bitmaps for Persistent Graphics in C Sharp|Instantiating a Bitmap and Creating a Graphics Object]]
 +
#* [[Using Bitmaps for Persistent Graphics in C Sharp|Drawing onto the Bitmap]]
 +
#* [[Using Bitmaps for Persistent Graphics in C Sharp|Rendering a Bitmap Image on a Control]]
 +
#* [[Using Bitmaps for Persistent Graphics in C Sharp|Changing the Background Color of a Bitmap]]<br><br>
 +
</td>
 +
<td valign="top">
 +
<htmlet>adsdaqbox</htmlet>
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
 
 +
<htmlet>csharp</htmlet>
 +
 
 +
 
 +
 
 +
<htmlet>ezoicbottom</htmlet>
 +
<hr>
 +
<table border="0" cellspacing="0" width="100%">
 +
<tr>
 +
<td width="20%"><td align="center">[[C Sharp Essentials|Table of Contents]]<td width="20%" align="right">[[About C Sharp Essentials|Next]]</td>
 +
<tr>
 +
<td width="20%"><td align="center"><td width="20%" align="right">About C# Essentials</td>
 +
</table>

Latest revision as of 15:54, 18 November 2016

The C# Essentials online book contains 28 chapters of detailed information intended to provide everything necessary to gain proficiency as a C# programmer.

Table of ContentsNext
About C# Essentials


Purchase and download the full PDF and ePub versions of this Visual C# eBook for only $9.99


© 2012 Neil Smyth / Payload Media. This eBook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited. All rights reserved.


Table of Contents

  1. About C# Essentials

  2. The C# Language and Environment
  3. A Simple C# Console Application
  4. Creating a Simple C# GUI Application with Visual Studio
  5. C# Variables and Constants
  6. C# Operators and Expressions
  7. C# Flow Control Using if and else
  8. The C# switch Statement
  9. C# Looping - The for Statement
  10. C# Looping with do and while Statements
  11. C# Object Oriented Programming
  12. C# Inheritance
  13. Understanding C# Abstract Classes
  14. Introducing C# Arrays
  15. C# List and ArrayList Collections
  16. Working with Strings in C#
  17. Formatting Strings in C#
  18. Working with Dates and Times in C#
  19. C# and Windows Forms
  20. Designing Forms in C# and Visual Studio
  21. Understanding C# GUI Events
  22. C# Events and Event Parameters
  23. Hiding and Showing Forms in C#
  24. Creating Top-Level Menus in C#
  25. Creating Context Menus in C#
  26. Building a Toolbar with C# and Visual Studio
  27. Drawing Graphics in C#
  28. Using Bitmaps for Persistent Graphics in C#


Purchase and download the full PDF and ePub versions of this Visual C# eBook for only $9.99



Table of ContentsNext
About C# Essentials