最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
在两个控件间建立分劈条的简单方法
时间:2022-07-02 11:59:00 编辑:袖梨 来源:一聚教程网
窗体中控件picSep,Text1,Text2
Option Explicit
Private Sub Form_Load()
picSep.BorderStyle = 0
picSep.
picSep.MousePointer = vbSizeWE
End Sub
Private Sub Form_Resize()
On Error Resume Next
Text1.Move 0, 0, picSep.Left, Me.ScaleHeight
Text2.Move picSep.Left + picSep.Width, 0, Me.ScaleWidth - picSep.Left - picSep.Width, Me.ScaleHeight
End Sub
Private Sub picSep_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
picSep.Left = picSep.Left + X
Form_Resize
End If
End Sub
Option Explicit
Private Sub Form_Load()
picSep.BorderStyle = 0
picSep.
picSep.MousePointer = vbSizeWE
End Sub
Private Sub Form_Resize()
On Error Resume Next
Text1.Move 0, 0, picSep.Left, Me.ScaleHeight
Text2.Move picSep.Left + picSep.Width, 0, Me.ScaleWidth - picSep.Left - picSep.Width, Me.ScaleHeight
End Sub
Private Sub picSep_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
picSep.Left = picSep.Left + X
Form_Resize
End If
End Sub
相关文章
- 红色的炼金术士护身皮甲配方衍生图一览 11-06
- 燕云十六声过山车坐骑怎么获得-座驾过山车获取方法 11-06
- 逃离鸭科夫仓库区隐藏的秘密任务怎么通过 隐藏的秘密任务流程攻略 11-06
- 逃离鸭科夫空间怪怎么打 速杀空间怪攻略 11-06
- 逃离鸭科夫偷吃钥匙房怎么偷吃 偷吃钥匙房攻略 11-06
- 逃离鸭科夫箱子潜行怎么打 箱子潜行打法攻略 11-06