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

📄 form5.frm

📁 GSM的VB实现代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form5 
   Caption         =   "Form5"
   ClientHeight    =   3090
   ClientLeft      =   5925
   ClientTop       =   4005
   ClientWidth     =   4680
   LinkTopic       =   "Form5"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   Begin VB.CommandButton Command2 
      Caption         =   "cancel"
      Height          =   495
      Left            =   2520
      TabIndex        =   5
      Top             =   2400
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   1920
      TabIndex        =   3
      Top             =   1440
      Width           =   2175
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   1920
      TabIndex        =   1
      Top             =   360
      Width           =   2175
   End
   Begin VB.CommandButton Command11 
      Caption         =   "Ok"
      Height          =   495
      Left            =   840
      TabIndex        =   4
      Top             =   2400
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "号码"
      Height          =   375
      Left            =   120
      TabIndex        =   2
      Top             =   1440
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "姓名"
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Top             =   480
      Width           =   1215
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command11_Click()

If Form5.Text1.Text = "" Or Form5.Text2.Text = "" Then
a = MsgBox("请输入完整", 0 + 0 + 16, "输入错误")
Else
Form1.List1.AddItem (Form5.Text1.Text & Space(1) & Form5.Text2.Text)
Open "list.txt" For Append As #1
Print #1, Form5.Text1.Text & Space(1) & Form5.Text2.Text
Close #1

Unload Me

End If


End Sub

Private Sub Command2_Click()
Unload Me

End Sub

⌨️ 快捷键说明

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