Chapter 2. It’s All Just Code: Under the hood

image with no caption

You’re a programmer, not just an IDE user.

You can get a lot of work done using the IDE. But there’s only so far it can take you. Sure, there are a lot of repetitive tasks that you do when you build an application. And the IDE is great at doing those things for you. But working with the IDE is only the beginning. You can get your programs to do so much more—and writing C# code is how you do it. Once you get the hang of coding, there’s nothing your programs can’t do.

When you’re doing this...

The IDE is a powerful tool—but that’s all it is, a tool for you to use. Every time you change your project or drag and drop something in the IDE, it creates code automatically. It’s really good at writing boilerplate code, or code that can be reused easily without requiring much customization.

Let’s look at what the IDE does in typical application development, when you’re...

  1. Creating a Windows Forms Application project

    There are several kinds of applications the IDE lets you build, but we’ll be concentrating on Windows Forms applications for now. Those are programs that have visual elements, like forms and buttons.

    image with no caption
  2. Dragging a button out of the toolbox and onto your form, and then double-clicking it

    Buttons are how you make things happen in your form. We’ll use ...

Get Head First C#, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.