private void drawingShapesFormToolStripMenuItem_Click(object sender, EventArgs e) { DrawingShapes newDrawingShapes = new DrawingShapes(); i1++; newDrawingShapes.Text += " " + i1; newDrawingShapes.MdiParent = this; newDrawingShapes.Show(); }
private void MainForm_Load(object sender, EventArgs e) { mainMenuStrip.MdiWindowListItem = windowToolStripMenuItem; // HandlingText newHandlingText = new HandlingText(); i2++; newHandlingText.Text += " " + i2; newHandlingText.MdiParent = this; newHandlingText.Show(); // newDrawingShapes = new DrawingShapes(); i1++; newDrawingShapes.Text += " " + i1; newDrawingShapes.MdiParent = this; newDrawingShapes.Show(); }