Learn C# (C sharp) in FREE step-by-step lessons.
Unit I: Introduction

The buttons
, labels
, scroll bars, list boxes and other things you see in a Windows program are called controls.
In this lesson you will learn to add controls to a program, change their appearance (properties) and make them function in the program.

Goal: Learn to add controls to the form.
In order to do this you will:
Goal:
- Add controls to a Windows Form application.
In order to do this you will:
Objectives:
- Add controls to a Windows Form application;
- Know how to take advantage of ambient properties;
- Be able to add pictures to the application in several ways;
- Align images and text controls;
- Identify the purpose of the most common controls;
- Create hot spots;
- Understand the naming conventions for controls.
- Add controls to a Windows Form application;
- Know how to take advantage of ambient properties;
- Be able to add pictures to the application in several ways;
- Align images and text controls;
- Identify the purpose of the most common controls;
- Create hot spots;
- Understand the naming conventions for controls.
Please study the material at each of the links below.
Microsoft Reference: C# Toolbox, Controls on Windows Forms
Controls: Adding controls to the form and change a few properties
Ambient Properties for a Uniform Look: Change font and colors of form first: When control is added it will have those same values
Adding Pictures with PictureBox: An animated gif is added to a picture box.
Pictures with Other Controls: In additon to the form and picture boxes,
images can also be added to other controls such as label and button.
Adding Tool Tip to controls: Tool tips are the small words that appear when you move the mouse over a control- Image alignment and text alignment: Image and text can be placed in one of 9 positions.
Hot Spots: Labels are arranged over a picture to create hot spots to show parts of computer- Naming controls: Give controls meaningful names such as picComputer or lblInstructions
- List of Controls: A list of some of the most common controls, names and use
Glossary for Controls in C#
Full Glossary