📄 lmb.frm
字号:
VERSION 5.00
Begin VB.Form Form3
Caption = "输入桩号"
ClientHeight = 2130
ClientLeft = 3255
ClientTop = 2655
ClientWidth = 3450
KeyPreview = -1 'True
LinkMode = 1 'Source
LinkTopic = "Form3"
ScaleHeight = 2130
ScaleWidth = 3450
Begin VB.TextBox Text1
Height = 375
Left = 1320
TabIndex = 0
Top = 240
Width = 1935
End
Begin VB.TextBox Text2
Height = 375
Left = 1320
TabIndex = 1
Top = 840
Width = 1935
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2160
TabIndex = 3
Top = 1560
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 600
TabIndex = 2
Top = 1560
Width = 975
End
Begin VB.Label Label2
Caption = "终点桩号:"
Height = 255
Left = 240
TabIndex = 5
Top = 960
Width = 1095
End
Begin VB.Label Label1
Caption = "起点桩号:"
Height = 255
Left = 240
TabIndex = 4
Top = 360
Width = 1095
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Const SWP_NOSIZE = &H1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOZORDER = &H4
Private Const SWP_NOREDRAW = &H8
Private Const SWP_NOACTIVATE = &H10
Private Const SWP_FRAMECHANGED = &H20
Private Const SWP_SHOWWINDOW = &H40
Private Const SWP_NOCOPYBITS = &H80
Private Const SWP_NOOWNERZORDER = &H200
Private Const SWP_DRAWFRAME = SWP_FRAMECHANGED
Private Const SWP_NOREPOSITION = SWP_NOOWNERZORDER
Private Const HWND_TOP = 0
Private Const HWND_BOTTOM = 1
Private Const HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2
Private Declare Function SetWindowPos Lib "user32" ( _
ByVal hWnd As Long, _
ByVal hWndInsertAfter As Long, _
ByVal X As Long, _
ByVal Y As Long, _
ByVal cx As Long, _
ByVal cy As Long, _
ByVal wFlags As Long) As Long
Private mbOnTop As Boolean
Private Property Let OnTop(Setting As Boolean)
If Setting Then
SetWindowPos hWnd, -1, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
Else
SetWindowPos hWnd, -2, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End If
mbOnTop = Setting
End Property
Private Property Get OnTop() As Boolean
'Return the private variable set in Property Let
OnTop = mbOnTop
End Property
Private Sub Command1_Click()
qdzh = Form3.Text1
zdzh = Form3.Text2
Unload Form3
End Sub
Private Sub Command2_Click()
qdzh = -999
zdzh = -999
Unload Form3
End Sub
Private Sub Form_Load()
' OnTop = True
'Form3.SetFocus
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{Tab}"
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{Tab}"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -