Skip to content

Commit 6f525f8

Browse files
mikkelbuRon Petrusha
authored andcommitted
Correct typo and indentation (#12617)
1 parent 3587d30 commit 6f525f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/framework/winforms/controls/how-to-append-a-menustrip-to-an-mdi-parent-window-windows-forms.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ In some applications, the kind of a multiple-document interface (MDI) child wind
3737

3838
9. Set the <xref:System.Windows.Forms.MergeAction> property of the `&Special`, `Command&1`, and `Command&2` menu items to <xref:System.Windows.Forms.MergeAction.Append>.
3939

40-
10. Create an event handler for the <xref:System.Windows.Forms.Control.Click> event of the `&New`<xref:System.Windows.Forms.ToolStripMenuItem>.
40+
10. Create an event handler for the <xref:System.Windows.Forms.Control.Click> event of the `&Open` <xref:System.Windows.Forms.ToolStripMenuItem>.
4141

4242
11. Within the event handler, insert code similar to the following code example to create and display new instances of `Form2` as MDI children of `Form1`.
4343

4444
```vb
4545
Private Sub openToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles openToolStripMenuItem.Click
4646
Dim NewMDIChild As New Form2()
4747
'Set the parent form of the child window.
48-
NewMDIChild.MdiParent = Me
48+
NewMDIChild.MdiParent = Me
4949
'Display the new form.
50-
NewMDIChild.Show()
50+
NewMDIChild.Show()
5151
End Sub
5252
```
5353

@@ -56,9 +56,9 @@ In some applications, the kind of a multiple-document interface (MDI) child wind
5656
{
5757
Form2 newMDIChild = new Form2();
5858
// Set the parent form of the child window.
59-
newMDIChild.MdiParent = this;
59+
newMDIChild.MdiParent = this;
6060
// Display the new form.
61-
newMDIChild.Show();
61+
newMDIChild.Show();
6262
}
6363
```
6464

0 commit comments

Comments
 (0)