C# is a powerful programming language. It helps to have a wonderful editor such as the Visual Studio IDE to write C# programs.
In the following video you will see that when you create a Windows Forms Application, an instance of a Form will be created with a default name Form1. This is what you see:
He will tell you that System.Windows.Forms is a namespace. So what is a namespace? A namespace holds a collection of classes organized into groups.
System.Windows.Forms holds a group of classes that can be used by the objects a Form contains. A form can contain buttons, labels, checkboxes, and much more. These are all classes inside the namespace System.Windows.Forms.
All C# programs use the System namespace which is the global container. Your program can have any number of namespaces according to the needs of your program.
When you create a Windows Forms Application in the Visual Studio C# IDE, you are creating an instance of a Class called Form.
Watch for the properties of the instance of the Class Form in this video.
Source: Enrique David Espinosa
Adding controls to the form.
Source: Enrique David Espinoza
for Sophia online college credit courses.Join Now