⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmphoneinfo.frm

📁 手机短心控制接收发射程序,通过串口与手机连接,
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmPhoneInfo 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "手机信息"
   ClientHeight    =   2775
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6045
   Icon            =   "frmPhoneInfo.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2775
   ScaleWidth      =   6045
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Caption         =   "信息"
      Height          =   2655
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   5775
      Begin VB.CommandButton Command2 
         Caption         =   "注册(&R)"
         Enabled         =   0   'False
         Height          =   375
         Left            =   4320
         TabIndex        =   15
         Top             =   1560
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "退出(&E)"
         Default         =   -1  'True
         Height          =   375
         Left            =   4320
         TabIndex        =   14
         Top             =   2040
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   1440
         Locked          =   -1  'True
         TabIndex        =   13
         Top             =   1035
         Width           =   2535
      End
      Begin VB.Timer Timer1 
         Interval        =   1000
         Left            =   5040
         Top             =   2040
      End
      Begin VB.Label labMobile 
         AutoSize        =   -1  'True
         ForeColor       =   &H00800000&
         Height          =   180
         Index           =   5
         Left            =   1440
         TabIndex        =   12
         Top             =   2160
         Width           =   360
      End
      Begin VB.Label labMobile 
         AutoSize        =   -1  'True
         ForeColor       =   &H00800000&
         Height          =   180
         Index           =   4
         Left            =   1440
         TabIndex        =   11
         Top             =   1800
         Width           =   90
      End
      Begin VB.Label labMobile 
         AutoSize        =   -1  'True
         ForeColor       =   &H00800000&
         Height          =   180
         Index           =   3
         Left            =   1440
         TabIndex        =   10
         Top             =   1440
         Width           =   360
      End
      Begin VB.Label labMobile 
         AutoSize        =   -1  'True
         ForeColor       =   &H00800000&
         Height          =   180
         Index           =   2
         Left            =   1320
         TabIndex        =   9
         Top             =   1080
         Width           =   360
      End
      Begin VB.Label labMobile 
         AutoSize        =   -1  'True
         ForeColor       =   &H00800000&
         Height          =   180
         Index           =   1
         Left            =   1200
         TabIndex        =   8
         Top             =   720
         Width           =   360
      End
      Begin VB.Label labMobile 
         AutoSize        =   -1  'True
         ForeColor       =   &H00800000&
         Height          =   180
         Index           =   0
         Left            =   1200
         TabIndex        =   7
         Top             =   360
         Width           =   360
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "手机信号强度:"
         Height          =   180
         Index           =   5
         Left            =   240
         TabIndex        =   6
         Top             =   2160
         Width           =   1170
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "手机电池电量:"
         Height          =   180
         Index           =   4
         Left            =   240
         TabIndex        =   5
         Top             =   1800
         Width           =   1170
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "手机当前时间:"
         Height          =   180
         Index           =   3
         Left            =   240
         TabIndex        =   4
         Top             =   1440
         Width           =   1170
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "手机序列号:"
         Height          =   180
         Index           =   2
         Left            =   240
         TabIndex        =   3
         Top             =   1080
         Width           =   990
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "手机型号:"
         Height          =   180
         Index           =   1
         Left            =   240
         TabIndex        =   2
         Top             =   720
         Width           =   810
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "手机品牌:"
         Height          =   180
         Index           =   0
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   810
      End
   End
End
Attribute VB_Name = "frmPhoneInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    Unload Me
End Sub

Private Sub Command2_Click()
    frmReg.Show 1
End Sub

Private Sub Form_Load()
    opId = 1
    frmPhoneB = True
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    frmPhoneB = False
End Sub

Private Sub Timer1_Timer()
    DoEvents
    If frmPhoneB = False Then
        Exit Sub
        Unload Me
    End If
    Select Case opId
        Case 1
            Call frmMain.rs232("品牌", 14)
        Case 2
            Call frmMain.rs232("型号", 15)
        Case 3
            Call frmMain.rs232("序列号", 16)
        Case 4
            Call frmMain.rs232("时间", 17)
        Case 5
            Call frmMain.rs232("电量", 18)
        Case 6
            Call frmMain.rs232("信号强度", 19)
    End Select
    'opId = opId + 1
    'Me.Caption = opId
    mSN = Trim(Text1.Text)
    mSN = Trim(mSN)
    If Len(mSN) > 10 Then Me.Command2.Enabled = True
    PauseWait (100)
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -