Zebra0.com
Controls in C#
Privacy
Contact
Topics
Algorithms
Alice 3
C++
C# Windows
RGB Colors
Computer Basics
Computer Concepts
HTML5
K12: Resources for Parents
Fidget Quilts
Controls in C#
Learn C# (C sharp) in FREE step-by-step lessons.
Module 02: Controls in C#
Controls such as labels, text box, and buttons are added to the form.
Goals:
Learn to add controls to the form.
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.
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 lesson
Full Glossary