O'Reilly logo

Learning C# 3.0 by Brian MacDonald, Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. Creating Windows Applications

All of the previous chapters have used console applications to demonstrate the C# language. This allowed us to focus on the language itself, without being distracted by more complicated issues such as windows, mice, and controls.

That being said, for many people the only reason to learn C# is to create Windows applications or web applications, or both. On the following pages, you will learn how to create Windows applications using the tools provided by Visual Studio. Chapter 19 will show you how to create visually rich applications using the Windows Presentation Foundation (WPF), which was introduced in .NET 3.0.

Windows application programming is a complicated topic that can occupy an entire book in itself—in fact, Programming .NET Windows Applications, by Jesse Liberty and Dan Hurwitz (O’Reilly), is one of those books. Windows programming is one of the most advanced topics we’ll cover in this book. Therefore, this will be something of a whirlwind tour. This chapter is also something of a culminating project, however, as you’re going to see a number of techniques that you’ve learned in recent chapters, such as event handlers, generics, collections, and of course, the more basic elements of the language that we’ve been using throughout the book.

In this chapter, you’ll be creating the most complex application you’ve written so far. It’s a Windows application that will allow you to copy files from one location on your computer to another. It ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required