|
发表于 2020-8-17 22:30:01
|
显示全部楼层
用两个PictureBox控件,首先在窗体添加1个PictureBox控件Picture1,然后在Picture1中间用鼠标加载另1个PictureBox控件Picture2.
在穿体添加剂个HScroll控件于窗体或Picture1内,调整Picture2的Height.
垂直滚动条建议不要与水平滚动条同时使用,会报错或当机.
代码如下:
Private Sub Form_Load()
Me.Height = 11295
Me.Width = 15360
Picture1.Width = Me.Width - 400
'Picture2.Height = Picture1.Height
Picture2.Width = Picture1.Width * 2.1'倍率可调整
End Sub
Private Sub HScroll1_Change()
Picture2.Left = -HScroll1 * 1.4 / 2.8'倍率需调整
End Sub
|
|