为什么在Form_Load时Picturebox的PaintPicture不行
vb吧
全部回复
仅看楼主
level 1
快樂钚哆 楼主
复制图片到Picturebox为何不行?改到Form_Initialize依然不行?
2008年01月29日 03点01分 1
level 6
picturebox 的 autodraw 改成 true 就可以了
2008年01月29日 03点01分 2
level 1
快樂钚哆 楼主
谢谢
2008年01月29日 03点01分 3
level 13
'缩小1/4图Private Sub Form_Load() Me.AutoRedraw = True With Picture1 .AutoRedraw = True .AutoSize = True .BorderStyle = 0 .Move Screen.Width End With Picture1.Picture = LoadPicture("c:\car.jpg") Me.PaintPicture Picture1, 0, 0, Picture1.Width \ 4, Picture1.Height \ 4, 0, 0, Picture1.Width, Picture1.Height End Sub
2008年01月29日 03点01分 5
level 1
快樂钚哆 楼主
CBM老师想问一个问题。除号 /和\有区别吗?
2008年01月29日 06点01分 6
level 13
msgbox 5/2msgbox 5\2看看各别得到什么? 使用 \ 得到的商数是整数忽略小数
2008年01月29日 06点01分 7
1