Dim obj As object = Forms("窗口1").Controls("PictureViewer1").basecontrol.Controls(0) Dim pic As Object = obj.panel1.controls("PictureSplitContainer").Panel1.controls("panel2").controls("C1PictureBox1") pic.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage