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

📄 frmshutdownclient.frm

📁 Billing Internet Cafe
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmShutdownClient 
   BackColor       =   &H00FFFFFF&
   BorderStyle     =   1  'Fixed Single
   Caption         =   " Shutdown Client"
   ClientHeight    =   2535
   ClientLeft      =   45
   ClientTop       =   390
   ClientWidth     =   3975
   Icon            =   "FrmShutdownClient.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2535
   ScaleWidth      =   3975
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton CmdStop 
      Caption         =   "Shutdown"
      Height          =   375
      Left            =   1080
      TabIndex        =   1
      Top             =   1800
      Width           =   1095
   End
   Begin VB.CommandButton CmdBatal 
      Caption         =   "Batal"
      Height          =   375
      Left            =   2400
      TabIndex        =   2
      Top             =   1800
      Width           =   1095
   End
   Begin VB.TextBox TxtNo_Client 
      Height          =   375
      Left            =   2400
      TabIndex        =   0
      Top             =   960
      Width           =   1095
   End
   Begin VB.Label Label25 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "Shutdown Client"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   255
      Left            =   1200
      TabIndex        =   4
      Top             =   240
      Width           =   2655
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "Nomor Client"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00B54524&
      Height          =   255
      Left            =   1080
      TabIndex        =   3
      Top             =   960
      Width           =   1335
   End
   Begin VB.Line Line1 
      X1              =   840
      X2              =   3480
      Y1              =   1680
      Y2              =   1680
   End
   Begin VB.Image Image1 
      Height          =   690
      Left            =   120
      Picture         =   "FrmShutdownClient.frx":B532
      Top             =   0
      Width           =   3750
   End
   Begin VB.Shape Shape1 
      BackColor       =   &H00FFFFC0&
      BorderColor     =   &H00E0E0E0&
      BorderWidth     =   2
      FillColor       =   &H00FFFFC0&
      FillStyle       =   0  'Solid
      Height          =   1695
      Left            =   120
      Top             =   720
      Width           =   3735
   End
End
Attribute VB_Name = "FrmShutdownClient"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdBatal_Click()
    Unload Me
End Sub

Private Sub CmdStop_Click()
On Error Resume Next
    cn.Open
    cmd.ActiveConnection = cn
    cmd.CommandType = adCmdText
    cmd.CommandText = "SELECT ip.*,socket.socket FROM ip,socket WHERE ip.ip = socket.ip AND ip.no_client = " & Val(TxtNo_Client.Text)
    cmd.Execute
    rs.ActiveConnection = cn
    rs.Open "SELECT ip.*,socket.socket FROM ip,socket WHERE ip.ip = socket.ip AND ip.no_client = " & Val(TxtNo_Client.Text), cn, adOpenStatic, adLockOptimistic
    If Not rs.RecordCount = 0 Then
        If FrmMain.Winsock(rs(2)).State = sckConnected Then
            FrmMain.Winsock(rs(2)).SendData "shutdown|_|_|_|_|_|_|"
        End If
    End If
    cn.Close
    Unload Me
End Sub

Private Sub TxtNo_Client_KeyPress(KeyAscii As Integer)
On Error Resume Next
    If Not ((KeyAscii >= Asc("0") And KeyAscii <= Asc("9")) Or KeyAscii = 13 Or KeyAscii = 8) Then
        KeyAscii = 0
    End If
    If KeyAscii = 13 Then
        CmdStop.SetFocus
    End If
End Sub

⌨️ 快捷键说明

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