WinForms Tutorial - Part 1

Let's take a break
We've been making our operating system for a while, so let's take a break. But we're not done with coding. Let's take a look at WinForms. The main GUI Toolkit for Windows. WinForms is an interesting toolkit for building applications. It can be accessed by adding this in your code:. Let's see what this has to offer.

Setting up your project
Go to File>New>Project, go to Visual C#, and select Windows Forms Application. Create your project, name it whatever you want. I named it TutApp. You should see a screen pop up with a Window, Toolbox, Properties, and Solution Explorer. You can resize the Window (or form) to your liking. Over in the Toolbox, you'll see a variety of controls to choose from. The most simplest of these is the Button, the Label, the TextBox, and the MenuStrip. The button is self-explanatory. You click it. The Label displays text. That's it. The TextBox is used for user input, and the MenuStrip is the top bar that you see on every single application. With these things alone you can create an application. With one of each, you can create a text-editor! In the next lesson we will be showing you how.

What's a text-editor?
You have it. I comes pre-installed with every operating system. Windows has Notepad, OS X has [I don't know!], and Linux has gedit. Microsoft Word is a text-editor, Notepad++ is a text editor. You name it, it's a text-editor. Let's continue with our operating system.