Dim cb As WinForm.ComboBox = e.Form.Controls("ComboBox1")
Dim pbx As WinForm.PictureBox = e.Form.Controls("PictureBox1")
Dim dr As DataRow = DataTables("管理者").find("人名 = '" & cb.text & "'")
If dr IsNot Nothing Then
pbx.Image = GetImage(dr("照片"))
’pbx.ImageLayout = ImageLayout.Zoom
End If
我想在窗口上添加一个图片 希望能够根据 图片容器的比例 刚好放下去, 不知道 该如何调整代码 ,还是需要修改图片的容器?