VB中picturebox图怎么样随窗体大小变化

[复制链接]
查看11 | 回复4 | 2009-8-8 17:05:23 | 显示全部楼层 |阅读模式
可以使用Image控件,将其属性Stretch设为True,调整其大小,图片自动调节。...
回复

使用道具 举报

千问 | 2009-8-8 17:05:23 | 显示全部楼层
用PictureBox的话,窗口Resize了,PictureBox怎么动呢?====================Option ExplicitDim R As RECTDim Ratio As SinglePrivate Type RECT
Left As Long
Top As Long...
回复

使用道具 举报

千问 | 2009-8-8 17:05:23 | 显示全部楼层
Option ExplicitDim TmpPic As IPictureDisp'使图像满足图片控件大小Private Sub Picture1_Paint()
Picture1.PaintPicture TmpPic, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeightEnd ...
回复

使用道具 举报

千问 | 2009-8-8 17:05:23 | 显示全部楼层
private sub form_resize()picture1.width = me.scalewidthpicture1.height = me.scaleheightend sub...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行