//store value below public AllPictures(GameDesignForm designForm) { this.Image = PYuAssignment2.Properties.Resources.grey; this.designForm = designForm; this.Height = 86; this.Width = 86; this.SizeMode = PictureBoxSizeMode.StretchImage; }
// go to the design form on click private void btnDesign_Click(object sender, EventArgs e) { GameDesignForm designForm = new GameDesignForm(); designForm.Show(); }