展开全部
加个picture控件,水平滚动条
Dim tempx, tempy
Private Sub Command1_Click()
File1.Path = Text1
File1.Pattern = "*.jpg;*.bmp"
End Sub
Private Sub File1_Click()
a = File1.Path & "\" & File1.FileName
Picture1.Picture = LoadPicture(a)
tempx = Picture1.Width
tempy = Picture1.Height
End Sub
Private Sub HScroll1_Change()
Picture1.Picture = LoadPicture("")
Call daxiao(HScroll1.Value, HScroll1.Value)
Picture1.Width = HScroll1.Value + tempx
Picture1.Height = HScroll1.Value + tempy
End Sub
Dim tempx, tempy
Private Sub Command1_Click()
File1.Path = Text1
File1.Pattern = "*.jpg;*.bmp"
End Sub
Private Sub File1_Click()
a = File1.Path & "\" & File1.FileName
Picture1.Picture = LoadPicture(a)
tempx = Picture1.Width
tempy = Picture1.Height
End Sub
Private Sub HScroll1_Change()
Picture1.Picture = LoadPicture("")
Call daxiao(HScroll1.Value, HScroll1.Value)
Picture1.Width = HScroll1.Value + tempx
Picture1.Height = HScroll1.Value + tempy
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询