- Get it by Wednesday, March 28 , Order now and choose Expedited Delivery during checkout.
Sams Teach Yourself C# in 24 Hours provides readers with 24 structured lessons that provide a light, but thorough introduction to C#. James Foxall moves beyond the pure syntax covered in existing books, to guide readers step-by-step through a cohesive presentation of the basics of C#. Once the basics are understood, Foxall shows the reader how to apply this knowledge to real-world Windows programming tasks using C#. Each chapter contains exercises that reinforce the lessons learned in each chapter. Tips, Notes, and Cautions provide additional advice from the authors on how to get up to speed and programming quickly with C#. Sidebars provide the more experienced reader with tips that will ease their migration from Visual Basic 6 and Visual C++ to C#.
About the Author
James Foxall is vice president of Tigerpaw Software, Inc., and is a Microsoft Certified Solution Developer (MCSD) specializing in commercial database applications. James is an authority on interface and behavior standards of Windows applications, and has written more than 150,000 lines of commercial production code. James has authored several books and regularly contributes articles to journals and magazines.
Table of Contents(NOTE: Each chapter concludes with a Summary, Q&A, and Workshop.)
Audience and Organization. Conventions Used in This Book. Onward and Upward!
I. THE VISUAL STUDIO ENVIRONMENT.
Hour 1. A C# Programming Tour.
Starting C#. Creating a New Project. Understanding the C# Environment. Changing the Characteristics of Objects. Naming Objects. Setting the Text Property of the Form. Giving the Form an Icon. Changing the Size of the Form. Adding Controls to a Form. Designing an Interface. Adding an Invisible Control to a Form. Coding an Interface. Running a Project.
Hour 2. Navigating C#.
Using the Visual Studio .NET Start Page. Navigating and Customizing the C# Environment. Adding Controls to a Form Using the Toolbox. Setting Object Properties Using the Properties Window. Managing Projects. Managing Project Files with the Solution Explorer. Getting Help.
Hour 3. Understanding Objects and Collections.
Understanding Objects. Understanding Properties. Understanding Methods. Building an Object Example Project. Understanding Collections. Using the Object Browser.
Hour 4. Understanding Events.
Understanding Event-Driven Programming. Building an Event Example Project.
II. BUILDING A USER INTERFACE.
Hour 5. Building Forms-Part I.
Changing the Name of a Form. Changing the Appearance of a Form. Showing and Hiding Forms.
Hour 6. Building Forms-Part II.
Working with Controls. Creating TopMost Windows. Creating Transparent Forms. Creating Scrollable Forms. Creating MDI Forms. Setting the Startup Object.
Hour 7. Working with the Traditional Controls.
Displaying Static Text with the Label Control. Allowing Users to Enter Text Using a Text Box. Creating Buttons. Creating Containers and Groups of Option Buttons. Displaying a List with the List Box. Creating Drop-Down Lists Using the Combo Box.
Hour 8. Advanced Controls.
Creating Timers. Creating Tabbed Dialog Boxes. Storing Pictures in an Image List. Building Enhanced Lists Using the List View. Creating Hierarchical Lists with the Tree View.
Hour 9. Adding Menus and Toolbars to Forms.
Building Menus. Programming Menus. Using the Toolbar Control. Creating a Status Bar.
Hour 10. Drawing and Printing.
Understanding the Graphics Object. Working with Pens. Using System Colors. Working with Rectangles. Drawing Shapes. Drawing Text. Persisting Graphics on a Form. Build a Graphics Project Example.
III. MAKING THINGS HAPPEN-PROGRAMMING!
Hour 11. Creating and Calling Methods.
Creating Class Members. Writing Methods. Creating the User Interface of Your Project. Calling Methods. Exiting Methods. Working with Tasks.
Hour 12. Using Constants, Data Types, Variables, and Arrays.
Understanding Data Types. Defining and Using Constants. Declaring and Referencing Variables. Determining Scope. Naming Conventions.
Hour 13. Performing Arithmetic, String Manipulation, and Date/Time Adjustments.
Performing Basic Arithmetic. Comparing Equalities. Understanding Boolean Logic. Manipulating Strings. Working with Dates and Times.
Hour 14. Making Decisions in C# Code.
Making Decisions Using if Statements. Evaluating an Expression for Multiple Values Using switch. Branching Within Code Using goto.
Hour 15. Looping for Efficiency.
Looping a Specific Number of Times Using for Statements. Using do…while to Loop an Indeterminate Number of Times.
Hour 16. Debugging Your Code.
Adding Comments to Your Code. Identifying the Two Basic Types of Errors. Using C#'s Debugging Tools. Writing an Error Handler Using try…catch…finally.
Hour 17. Designing Objects Using Classes.
Understanding Classes. Instantiating Objects from Classes.
Hour 18. Interacting with Users.
Displaying Messages Using the MessageBox.Show() Method. Creating Custom Dialog Boxes. Interacting with the Keyboard. Using the Common Mouse Events.
IV. WORKING WITH DATA.
Hour 19. Performing File Operations.
Using the Open File Dialog and Save File Dialog Controls. Manipulating Files with the File Object. Manipulating Directories with the Directory Object.
Hour 20. Controlling Other Applications Using Automation.
Creating a Reference to an Automation Library. Creating an Instance of an Automation Server. Manipulating the Server.
Hour 21. Working with a Database.
Introduction to ADO.NET. Connecting to a Database. Manipulating Data. Using the Data Form Wizard.
V. DEPLOYING SOLUTIONS AND BEYOND.
Hour 22. Deploying a Solution.
Creating a Custom Setup Program. Running a Custom Setup Program. Uninstalling an Application You've Distributed.
Hour 23. Introduction to Web Development.
XML. SOAP. ASP.NET. Web Forms. XML Web Services.
Hour 24. The 10,000-Foot View.
The .NET Framework. Common Language Runtime (CLR). Microsoft Intermediate Language. Namespaces. Common Type System. Garbage Collection.