Home > Backend Development > C#.Net Tutorial > 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#

黄舟
Release: 2017-03-07 11:07:10
Original
2493 people have browsed it

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)!


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template