- Shopping Bag ( 0 items )
Sams Teach Yourself Visual C#® 2008 in 24 Hours
DVD includes Visual C#® 2008 Express Edition
In just 24 sessions of one hour or less, you will be up and running with Visual C# 2008. Using a straightforward, step-by-step approach, each lesson builds...
Sams Teach Yourself Visual C#® 2008 in 24 Hours
DVD includes Visual C#® 2008 Express Edition
In just 24 sessions of one hour or less, you will be up and running with Visual C# 2008. Using a straightforward, step-by-step approach, each lesson builds upon the previous one, allowing you to learn the essentials of Visual C# from the ground up.
By the Way notes present interesting pieces of information.
Did You Know? tips offer advice or teach an easier way to do something.
Watch Out! cautions advise you about potential problems and help you steer clear of disaster.
Learn how to...
James Foxall is vice president of Tigerpaw Software, Inc. (www.tigerpawsoftware.com), a Bellevue, Nebraska, Microsoft Certified Partner specializing in commercial database applications. He manages the development, support, training, and education of Tigerpaw CRM+, an award-winning application that automates contact management, marketing, service and repair, proposal generation, inventory control, and purchasing. Tigerpaw has more than 20,000 licensed users in 27 countries. Foxall’s experience in creating certified Office-compatible software has made him an authority on application interface and behavior standards. In addition to being a well-known author, James is an international speaker on Microsoft technologies, has taught at the college level, and contributes to several journals.
On the Web:
Category: Microsoft Programming
Covers: Visual C# 2008
User Level: Beginning
Part I: The Visual C# 2008 Environment
HOUR 1: Jumping In with Both Feet: A Visual C# 2008 Programming Tour
Starting Visual C# 2008
Creating a New Project
Understanding the Visual Studio .NET Environment
Changing the Characteristics of Objects
Adding Controls to a Form
Designing an Interface
Writing the Code Behind an Interface
Running a Project
HOUR 2: Navigating Visual C# 2008
Using the Visual C# 2008 Start Page
Navigating and Customizing the Visual C# Environment
Working with Toolbars
Adding Controls to a Form Using the Toolbox
Setting Object Properties Using the Properties Window
A Quick-and-Dirty Programming Primer
HOUR 3: Understanding Objects and Collections
Building a Simple Object Example Project
Using the Object Browser
HOUR 4: Understanding Events
Understanding Event-Driven Programming
Building an Event Example Project
Part II: Building a User Interface
HOUR 5: Building Forms—The Basics
Changing a Form’s Name
Changing a Form’s Appearance
Showing and Hiding Forms
HOUR 6: Building Forms—Advanced Techniques
Working with Controls
Adding a Control by Double-Clicking It in the Toolbox
Adding a Control by Dragging from the Toolbox
Adding a Control by Drawing It
Creating Topmost Nonmodal Windows
Creating Transparent Forms
Creating Scrollable Forms
Creating MDI Forms
HOUR 7: Working with Traditional Controls
Displaying Static Text with the Label Control
Allowing Users to Enter Text Using a Text Box
Presenting Yes/No Options Using Check Boxes
Creating Containers and Groups of Option Buttons
Displaying a List with the List Box
Creating Drop-Down Lists Using the Combo Box
HOUR 8: Using Advanced Controls
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
Using the Toolbar Control
Creating a Status Bar
Part III: Making Things Happen: Programming
HOUR 10: Creating and Calling Methods
Understanding Class Members
Defining and Writing Methods
Creating Static Methods
Avoiding Infinite Recursion
HOUR 11: Using Constants, Data Types, Variables, and Arrays
Understanding Data Types
Defining and Using Constants
Declaring and Referencing Variables
Working with Arrays
Using Variables in Your Picture Viewer Project
HOUR 12: Performing Arithmetic, String Manipulation, and Date/Time Adjustments
Performing Basic Arithmetic Operations with Visual C#
Understanding Boolean Logic
Working with Dates and Times
HOUR 13: Making Decisions in Visual C# Code
Making Decisions Using if...else
Evaluating an Expression for Multiple Values Using switch
HOUR 14: Looping for Efficiency
Looping a Specific Number of Times Using for
Using while and do...while to Loop an Indeterminate Number of Times
HOUR 15: Debugging Your Code
Adding Comments to Your Code
Identifying the Two Basic Types of Errors
Using Visual C# Debugging Tools
Writing an Error Handler Using Try...Catch...Finally
HOUR 16: Designing Objects Using Classes
Instantiating Objects from Classes
HOUR 17: Interacting with Users
Displaying Messages Using the MessageBox.Show() Function
Creating Custom Dialog Boxes
Interacting with the Keyboard
Using the Common Mouse Events
HOUR 18: Working with Graphics
Understanding the Graphics Object
Working with Pens
Using System Colors
Working with Rectangles
Persisting Graphics on a Form
Building a Graphics Project Example
Part IV: Working with Data
HOUR 19: Performing File Operations
Using the OpenFileDialog and SaveFileDialog Controls
Manipulating Files with the File Object
Manipulating Directories with the Directory Object
HOUR 20: Working with Text Files and the Registry
Working with the Registry
Reading and Writing Text Files
HOUR 21: Working with a Database
HOUR 22: Controlling Other Applications Using Automation
Creating a Reference to an Automation Library
Creating an Instance of an Automation Server
Manipulating the Server
Automating Microsoft Word
Part V: Developing Solutions and Beyond
HOUR 23: Deploying Applications
Understanding ClickOnce Technology
Using the Publish Wizard to Create a ClickOnce Application
Testing Your Picture Viewer ClickOnce Install Program
Uninstalling an Application You’ve Distributed
Setting Advanced Options for Creating ClickOnce Programs
HOUR 24: The 10,000-Foot View
The .NET Framework
Common Language Runtime
Microsoft Intermediate Language
Common Type System
0672329905 TOC 5/8/2008
With Microsoft's introduction of the .NET platform, a new, exciting programming language was born. Visual C# is now the language of choice for developing on the .NET platform, and Microsoft has even written a majority of the .NET Framework using Visual C#. Visual C# is a modern object-oriented language designed and developed from the ground up with a best-of-breed mentality, implementing and expanding on the best features and functions found in other languages. Visual C# 2008 combines the power and flexibility of C++ with some of the simplicity of Visual C#.
This book is targeted toward those who have little or no programming experience or who might be picking up Visual C# as a second language. The book has been structured and written with a purpose: to get you productive as quickly as possible. I've used my experiences in writing applications with Visual C# and teaching Visual C# to create a book that I hope cuts through the fluff and teaches you what you need to know. All too often, authors fall into the trap of focusing on the technology rather than on the practical application of the technology. I've worked hard to keep this book focused on teaching you practical skills that you can apply immediately toward a development project. Feel free to post your suggestions or success stories at http://www.jamesfoxall.com/forums.
This book is divided into five parts, each of which focuses on a different aspect of developing applications with Visual C# 2008. These parts generally follow the flow of tasks you'll perform as you begin creating your own programs with Visual C# 2008. I recommend that you read them in the order in which they appear.
Many readers of previous editions have taken the time to give me input on how to make this book better. Overwhelmingly, I was asked to have examples that build on the examples in the previous chapters. In this book, I have done that as much as possible. Now, instead of learning concepts in isolated bits, you'll be building a feature-rich Picture Viewer program throughout the course of this book. You'll begin by building the basic application. As you progress through the chapters, you'll add menus and toolbars to the program, build an Options dialog box, modify the program to use the Windows Registry and a text file, and even build a setup program to distribute the application to other users. I hope you find this approach beneficial in that it enables you to learn the material in the context of building a real program.
This book uses several design elements and conventions to help you prioritize and reference the information it contains:
Note - By the Way boxes provide useful sidebar information that you can read immediately or circle back to without losing the flow of the topic at hand.
Tip - Did You Know? boxes highlight information that can make your Visual C# programming more effective.
Caution - Watch Out! boxes focus your attention on problems or side effects that can occur in specific situations.
New terms appear italic for emphasis.
In addition, this book uses various typefaces to help you distinguish code from regular English. Code is presented in a monospace font. Placeholders—words or characters that represent the real words or characters you would type in code—appear in italic monospace. When you are asked to type or enter text, that text appears in bold.
Some code statements presented in this book are too long to appear on a single line. In these cases, a line-continuation character (an underscore) is used to indicate that the following line is a continuation of the current statement.
This is an exciting time to be learning how to program. It's my sincerest wish that when you finish this book, you feel capable of creating, debugging, and deploying modest Visual C# programs, using many of Visual C#'s tools. Although you won't be an expert, you'll be surprised at how much you've learned. And I hope this book will help you determine your future direction as you proceed down the road to Visual C# mastery.
© Copyright Pearson Education. All rights reserved.
Posted July 4, 2008
Foxall gives us a quick coverage of C#, well suited to a neophyte. The book seems equally divided between the explanations of graphics and non-graphics. The latter means traditional aspects of any programming language, as in the use of if-else, while and for loops. Here, you might as well be studying C in 1980. These are fundamental constructs that any language needs. What is perhaps more distinctive of C# are the graphic components, widgets. Foxall shows how to quickly write short programs that can make a few widgets and lay them out in a window for the user to interact with. En route, he teaches about event driven programming, where if you use graphics, the user can interact with the program in many ways. Hence the structuring of code to handle this is quite different from programs lacking a GUI. The use of widgets also lends itself well to you understanding object oriented coding.
1 out of 1 people found this review helpful.Was this review helpful? Yes NoThank you for your feedback. Report this reviewThank you, this review has been flagged.