在两个控件居中|在两个控件间建立分劈条的简单方法

时间:2014-03-30  来源:组件控件开发  阅读:
窗体中控件picSep,Text1,Text2
Option Explicit
Private Sub Form_Load()
picSep.BorderStyle = 0
picSep.Width = 50
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

在两个控件居中|在两个控件间建立分劈条的简单方法

http://m.bbyears.com/asp/5242.html

推荐访问:
相关阅读 猜你喜欢
本类排行 本类最新