コード例 #1
0
ファイル: MDIForm.cs プロジェクト: keroishak/ImageTask1
 public MDIForm(ref Image Img,MainForm Parent)
 {
     InitializeComponent();
     img = Img.Clone();
     //this.Dock = DockStyle.Fill;
     this.WindowState = FormWindowState.Maximized;
     MDIPicture.Width = (int)img.Width;
     MDIPicture.Height = (int)img.Height;
     Parent.IsMdiContainer = true;
     this.MdiParent = Parent;
     MDIPicture.Image = img.bitmap;
     this.Show();
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: keroishak/ImageTask1
 private void newFormToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MainForm f = new MainForm();
     this.Hide();
     f.ShowDialog();
     this.Show();
 }