📄 frmwatermeterinputmachine_userselect.frm
字号:
VERSION 5.00
Begin VB.Form frmWaterMeterInputMachine_UserSelect
BorderStyle = 1 'Fixed Single
Caption = "用户查询"
ClientHeight = 1830
ClientLeft = 45
ClientTop = 330
ClientWidth = 4860
Icon = "frmWaterMeterInputMachine_UserSelect.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
MouseIcon = "frmWaterMeterInputMachine_UserSelect.frx":0442
ScaleHeight = 1830
ScaleWidth = 4860
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmdOK
Caption = "确定"
Height = 390
Left = 180
TabIndex = 1
Top = 1260
Width = 1065
End
Begin VB.Frame Frame1
Caption = "用户"
ForeColor = &H00800000&
Height = 1005
Left = 150
TabIndex = 2
Top = 120
Width = 4500
Begin VB.TextBox txtUID
Height = 300
Left = 1110
TabIndex = 0
Top = 375
Width = 2190
End
Begin VB.Label Label1
Caption = "用户编号:"
Height = 180
Left = 210
TabIndex = 3
Top = 435
Width = 930
End
End
End
Attribute VB_Name = "frmWaterMeterInputMachine_UserSelect"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public strReturnUID As String
Private Sub cmdOK_Click()
strReturnUID = Trim(Me.txtUID.Text)
Unload Me
End Sub
Private Sub Form_Load()
Me.txtUID.MaxLength = gUIDLen
'初始化返回值
strReturnUID = ""
End Sub
Private Sub txtUID_GotFocus()
Call AutoSelectText(txtUID)
End Sub
Private Sub txtUID_KeyPress(KeyAscii As Integer)
Call IfEnterKeyMoveNext(KeyAscii)
End Sub
Private Sub txtUID_LostFocus()
If Trim(Me.txtUID.Text) = "" Then Exit Sub
Me.txtUID.Text = String(gUIDLen - Len(Trim(Me.txtUID.Text)), "0") & Trim(Me.txtUID.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -