Home  >  Article  >  Backend Development  >  C# Create MDI form (graphics and text)

C# Create MDI form (graphics and text)

PHPz
PHPzOriginal
2017-04-03 11:38:423148browse

Open VS to create a WindowsForm program:


##Modify the formProperties: Find the IsMdiContainer property and change it to True:

Next we create a

button in the Form1 window to open a window and see if it is It is not displayed in the Form1 window: double-click the From1 form to create a button in the Form1_Load method, and register a click event for the button: (Create using code here) as shown in the figure: Run Test:

Perfect

##Note:

## The MDI window arrangement style uses the following code

LayoutMdi(MdiLayout.Cascade)


The above is the detailed content of C# Create MDI form (graphics and text). For more information, please follow other related articles on the PHP Chinese website!

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