is a window in C # A class, or an instance of a window class?

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.