method

587Currently online
155Today's Reading
15Share Today
Multilingual display

How to Cascade child forms in C#

2018-05-11 20:48:17

Let's take a look at how C# can cascade child forms.

Tools/Materials

VS 2019

Methods/Steps
1

We have a click-write event control ready in the form, which can be any control.

2

Then we write the LayoutMdi method, which does not need to return a value, so it can stand on its own.

3

At this point we call the MdiLayout class, paying attention to the spelling, because it is very similar to the spelling in step 2.

4

Then call the Cascade tiling attribute in MdiLayout's class.

5

At this time to run some of our sub-forms, can also be opened more.

6

Then click Tile and you'll see the effect.

Matters needing attention

Children's shoes that can't be used leave me a message.

Recommendation