Home  >  Article  >  Backend Development  >  Detailed graphic and text explanation of the steps to add a window in C#

Detailed graphic and text explanation of the steps to add a window in C#

黄舟
黄舟Original
2017-03-07 11:07:102433browse

The following editor will bring you a detailed explanation of the steps to add a window in C#. The editor thinks it is quite good, so I will share it with you now and give it as a reference for everyone. Let’s follow the editor and take a look.

Steps to add a window in C#: 1 is to add a window. 2 is to use new to instantiate the window class object in the program and display the window.

1 Add window

In Solution Manager->Main project name->Right-click->Add->Windows Form

2 Instantiate and display the window

//Instantiate the window object Form2 f2 = new Form2();//Call the class member function Show() to display the window f2.Show();

The above is a detailed graphic explanation of the steps to add a window in C#. For more related content, please pay attention to PHP Chinese website (www.php.cn)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn