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

📄 frmusrdel.frm

📁 <Visual Basic 数据库开发实例精粹(第二版)>一书首先介绍了Visual Basic(简称VB)开发的技巧和重点技术
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmUsrDel 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "删除管理员信息"
   ClientHeight    =   1665
   ClientLeft      =   45
   ClientTop       =   360
   ClientWidth     =   3750
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   1665
   ScaleWidth      =   3750
   Begin VB.CommandButton CmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   2520
      TabIndex        =   3
      Top             =   1200
      Width           =   1095
   End
   Begin VB.TextBox TextID 
      Height          =   375
      Left            =   1440
      TabIndex        =   1
      Top             =   720
      Width           =   2175
   End
   Begin VB.CommandButton CmdDel 
      Caption         =   "删除"
      Default         =   -1  'True
      Height          =   375
      Left            =   1320
      TabIndex        =   0
      Top             =   1200
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "请输入需要删除的管理员ID:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   120
      TabIndex        =   4
      Top             =   120
      Width           =   3615
   End
   Begin VB.Label Label1 
      Caption         =   "管理员ID:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   375
      Left            =   120
      TabIndex        =   2
      Top             =   720
      Width           =   1575
   End
End
Attribute VB_Name = "FrmUsrDel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCancel_Click()   '取消
    Unload Me
End Sub

'删除管理员
Private Sub CmdDel_Click()
Dim str As String
    '检验输入内容
    If Len(Trim(Me.TextID.Text)) <= 0 Then
        MsgBox "请输入管理员ID!"
        Exit Sub
    ElseIf Len(Trim(Me.TextID.Text)) > 16 Then
        MsgBox "您输入的ID过长!"
        Exit Sub
    End If
    '生成要发送的数据 = Usr,02,Usr_ID
    str = "Usr," & "02," & Me.TextID.Text
    '检验sock连接并向服务器发送数据
    If MDIFrm.SockToSvr.State <> sckConnected Then
        MsgBox "还没有连接数据库,不能发送请求!"
        Exit Sub
    End If
    MDIFrm.SockToSvr.SendData str
    Unload Me
End Sub

⌨️ 快捷键说明

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