求助:vb图片随图片框大小变化
发布网友
发布时间:2023-03-05 02:02
我来回答
共2个回答
热心网友
时间:2024-01-07 02:41
Picture1.AutoSize = True
AutoSize 属性,图片自动适应图片框大小
你可引用image控件
Image1.Stretch = True
Image1.Picture = Picture1.Picture
热心网友
时间:2024-01-07 02:41
设计时载入图片则:
dim p as stdpicture
Form_Load里面加:
set p=Picture1.picture
Picture1_Resize里写:
Picture1.PaintPicture Picture1, Picture1.scaleleft, Picture1.scaletop, Picture1.scaleWidth, Picture1.scaleHeight