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

📄 frmubahipclient.frm

📁 Billing Internet Cafe
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmubahipclient 
   Caption         =   "Edit IP Client"
   ClientHeight    =   3600
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   5385
   Icon            =   "frmubahipclient.frx":0000
   LinkTopic       =   "Form2"
   ScaleHeight     =   3600
   ScaleWidth      =   5385
   StartUpPosition =   2  'CenterScreen
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frmubahipclient.frx":B532
      Height          =   1695
      Left            =   240
      TabIndex        =   9
      Top             =   360
      Width           =   3615
      _ExtentX        =   6376
      _ExtentY        =   2990
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   1033
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            ColumnWidth     =   645.165
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   2624.882
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton cmdhapus 
      Caption         =   "Hapus"
      Enabled         =   0   'False
      Height          =   495
      Left            =   1560
      TabIndex        =   8
      Top             =   2880
      Width           =   1095
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   6000
      Top             =   3120
      Visible         =   0   'False
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.TextBox txtip 
      DataField       =   "ip"
      DataSource      =   "Adodc1"
      Height          =   285
      Left            =   2160
      Locked          =   -1  'True
      TabIndex        =   7
      Top             =   2280
      Width           =   1815
   End
   Begin VB.TextBox txtnocli 
      DataField       =   "no_client"
      DataSource      =   "Adodc1"
      Height          =   285
      Left            =   1080
      Locked          =   -1  'True
      TabIndex        =   6
      Top             =   2280
      Width           =   495
   End
   Begin VB.CommandButton cmdclose 
      Caption         =   "Tutup"
      Height          =   495
      Left            =   4080
      TabIndex        =   3
      Top             =   1440
      Width           =   1215
   End
   Begin VB.CommandButton cmdsimpan 
      Caption         =   "Simpan"
      Enabled         =   0   'False
      Height          =   495
      Left            =   2880
      TabIndex        =   2
      Top             =   2880
      Width           =   1095
   End
   Begin VB.CommandButton cmdedit 
      Caption         =   "Edit"
      Enabled         =   0   'False
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   2880
      Width           =   1095
   End
   Begin VB.CommandButton cmdview 
      Caption         =   "View"
      Height          =   495
      Left            =   4080
      TabIndex        =   0
      Top             =   480
      Width           =   1215
   End
   Begin VB.Shape Shape3 
      BackColor       =   &H00FFFFC0&
      BorderColor     =   &H00E0E0E0&
      BorderWidth     =   2
      FillColor       =   &H00FFFFC0&
      FillStyle       =   0  'Solid
      Height          =   735
      Left            =   120
      Top             =   2760
      Width           =   3975
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "No Client"
      Height          =   195
      Left            =   240
      TabIndex        =   5
      Top             =   2280
      Width           =   645
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "IP"
      Height          =   195
      Left            =   1800
      TabIndex        =   4
      Top             =   2280
      Width           =   150
   End
   Begin VB.Shape Shape1 
      BackColor       =   &H00FFFFC0&
      BorderColor     =   &H00E0E0E0&
      BorderWidth     =   2
      FillColor       =   &H00FFFFC0&
      FillStyle       =   0  'Solid
      Height          =   1935
      Left            =   120
      Top             =   240
      Width           =   3855
   End
End
Attribute VB_Name = "frmubahipclient"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdclose_Click()
Unload Me
End Sub

Private Sub cmdedit_Click()
txtnocli.Locked = False
txtip.Locked = False
End Sub

Private Sub cmdhapus_Click()
On Error GoTo err
If MsgBox("Anda yakin akan menghapus Client data", vbYesNo, "Konfirmasi") = vbYes Then
Adodc1.Recordset.Delete
End If
err:
If err.Number = 91 Then
MsgBox "Tidak ada data yang akan di hapus", vbOKOnly, "Blank Data"
End If
End Sub

Private Sub cmdsimpan_Click()
On Error Resume Next
Adodc1.Recordset.MoveFirst
cmdedit.Enabled = False
cmdsimpan.Enabled = False
cmdhapus.Enabled = False

End Sub

Private Sub cmdview_Click()
Adodc1.Refresh
cmdedit.Enabled = True
cmdsimpan.Enabled = True
cmdhapus.Enabled = True
End Sub

Private Sub Form_Load()
On Error Resume Next
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & pathdata & "black.BLC;Persist Security Info=False;Jet OLEDB:Database Password=myblackpearl87"
Adodc1.RecordSource = "Select * from ip "

End Sub

⌨️ 快捷键说明

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