Murach's C# 2012
How to code and test a Windows Forms application

This chapter shows you how to write the C# code for the Windows form that was designed in chapter 2. This chapter also gets you started with practical debugging techniques. When you finish this chapter, you'll be able to use Visual Studio to (1) design a form, (2) write the C# code for the form, and (3) debug the form. To see how well this book works, you can download this chapter and try it out for yourself.

Chapter 3 How to code and test a Windows Forms application
An introduction to coding 58
Introduction to object-oriented programming 58
How to refer to properties, methods, and events 60
How an application responds to events 62
How to add code to a form 64
How to create an event handler for the default event of a form or control 64
How to delete an event handler 64
How IntelliSense helps you enter the code for a form 66
The event handlers for the Invoice Total form 68
How to detect and correct syntax errors 70
More coding skills 72
How to code with a readable style 72
How to code comments 74
How to work with the Text Editor toolbar 76
How to collapse or expand blocks of code 76
How to zoom in and out 78
How to highlight symbols 78
How to print the source code 78
How to use code snippets 80
How to refactor code 82
How to get help information 84
How to run, test, and debug a project 86
How to run a project 86
How to test a project 88
How to debug runtime errors 90




Murach's C# 2012

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 60 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.