private void newfile() { int i = 0; Point p = new Point(40, 320); Point[] loc = { new Point(46, 70), new Point(46, 125), new Point(46, 180), new Point(46, 235), new Point(46, 290), new Point(47, 345), new Point(47, 399), new Point(47, 454), new Point(47, 509), new Point(46, 564), new Point(46, 619), new Point(46, 674) }; for (i = 0; i < 5; i++) { p_music[i].Controls.Clear(); //악보 초기화 p_madi[i].Controls.Clear(); //마디 초기화 // 음표 추가 for (int j = 0; j < 12; j++) { PictureBox mb = new PictureBox(); mb.Size = new System.Drawing.Size(19, 49); mb.BackgroundImageLayout = ImageLayout.Stretch; mb.SizeMode = PictureBoxSizeMode.StretchImage; mb.BackColor = Color.Transparent; mb.Location = loc[j]; mb.Image = WindowsFormsApplication1.Properties.Resources.Treble_clef1; p_music[i].Controls.Add(mb); } p_music[i].Controls.Add(tb_name[i]); //제목 입력 칸 붙이기 } POctl = new control(); //새 컨트롤 생성 init(); }