Zebra0.com

csharp introductionC# Windows Forms Programming

C# Windows Forms Programming

Learn C# (C sharp) in FREE step-by-step lessons.

Introduction to C#

In this lesson you will learn what C# is. You will download and install Visual Studio Community 2017.

You will learn to to use the IDE (integrated development environment) and write your first program: Hello World.


C# is an object oriented programming language. It is used to write Windows programs that are GUI and event driven.

It’s WHAT???

GUI: Graphical User Interface (pronounced gooey): the user can make choices with the mouse rather than having to type everything. He selects icons, option buttons, command buttons, and other graphic images, or pictures.

Object: An object combines both data (properties) and events (procedures). You will build your program from objects such as forms, command buttons, scroll bars, text boxes, picture boxes and timers. Each object (or control) has properties such as a name, width, color, and font. You write code for events that may happen to the control. Some of the events that can happen include click on it, double click it, or move the mouse over it, the user types in a text box, or a timer goes off. Different kinds of objects have different properties and events associated with them. For example, scroll bars have maximum and minimum properties, a timer has an interval property. Text boxes have properties such as font, font color, and font size. Most properties can be changed at both design time and at run time.

Event Driven: When you run an event driven program, it continuously checks to see if an event has occurred. When an event occurs, any code for that event is executed, then the cycle of checking for another event continues.

Goal:

In order to do this you will:

Objectives:

Please study the material at each of the links below.

  1. Microsoft Reference: C# Guide Microsoft Reference: C# Guide: Complete Microsoft Reference for C#

  2. Install Visual Studio

  3. Create your first Program Create your first Program: Step-by-step instructions for creating a C# windows form application
    /csharp/videos/csharp-start.mp4
  4. The Visual Studio Menu: Describes the items you will see on menu after you start a C# project.

  5. Your first Program: Hello World Your first Program: Hello World: Shows how to change the text and backcolor of the form at design time.
    /csharp/videos/csharp-properties.mp4
  6. Adding Pictures in Hello World Program Adding Pictures in Hello World Program: Shows how to add a picture for the background and change some settings
    /csharp/videos/csharp-pictures.mp4
  7. Changing Pictures in Hello World Program Changing Pictures in Hello World Program: Shows some additional setting for the background image
    /csharp/videos/csharp-pictures2.mp4
  8. Files in your project Files in your project: Looks at the files that are created as part of a C# project and how to zip the entire folder.
    /csharp/videos/csharp-files.mp4
  9. Active Learning: Review what you have learned: Suggestions for practicing what you have learned.

  10. Self Study Questions

GlossaryGlossary for introduction lesson
Full Glossary