is a window in C # A class, or an instance of a window class?
For:
No one is talking about the point.
A window, it is not just a class can be described;
First, the type of data type for this window is derived from the form class, meaning that it is defined as a class.
However, this window can only be defined to exist in the reality, it is to use the application class before it can be born, to be able to start to run, but the birth is not this class, but the class derived from the form class of one or some instance.
When it comes to the application class, you cannot mention the program class, because the application class must instantiate the form class in the program class.
The prototype is this:
Static Class Program
{
[STAThread]
static void Main ()
{
Omit several initialization form properties and other code
Application.Run (New Form1 ());//The Form class is instantiated here
}
The birth of a window, is a very complex process, it cannot exist alone, it is inseparable from the. NET framework.
is a window in C # A class, or an instance of a window class? Go