vb6.0 command控件的Picture属性
command控件的Picture属性中。如何让图片铺满整个command控件,因为我的图片很小...
command控件的Picture属性中。如何让图片铺满整个command控件,因为我的图片很小
展开
展开全部
用一个PictureBox控件做中转站即可实现(Command控件的Picture属性要预先放入你需要的图片):
Private Sub Form_Load()
Picture1.Visible = False
Picture1.AutoRedraw = True
Picture1.BorderStyle = 0
Picture1.Width = Command1.Width
Picture1.Height = Command1.Height
Picture1.PaintPicture Command1.Picture, 0, 0, Picture1.Width, Picture1.Height
Command1.Picture = Picture1.Image
End Sub
Private Sub Form_Load()
Picture1.Visible = False
Picture1.AutoRedraw = True
Picture1.BorderStyle = 0
Picture1.Width = Command1.Width
Picture1.Height = Command1.Height
Picture1.PaintPicture Command1.Picture, 0, 0, Picture1.Width, Picture1.Height
Command1.Picture = Picture1.Image
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询