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

📄 usercancel_frm.frm

📁 一套很不错的学生选课系统及学生信息管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form usercancel_frm 
   Caption         =   "注销"
   ClientHeight    =   1965
   ClientLeft      =   5190
   ClientTop       =   1995
   ClientWidth     =   4290
   LinkTopic       =   "Form1"
   ScaleHeight     =   1965
   ScaleWidth      =   4290
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   495
      Left            =   2760
      Top             =   1320
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   873
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\VB实习\DB1.MDB;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\VB实习\DB1.MDB;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "pwd"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   2040
      TabIndex        =   1
      Top             =   840
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   480
      TabIndex        =   0
      Top             =   840
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2520
      TabIndex        =   2
      Text            =   "Text1"
      Top             =   120
      Visible         =   0   'False
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   375
      Left            =   360
      TabIndex        =   3
      Top             =   120
      Width           =   2055
   End
End
Attribute VB_Name = "usercancel_frm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Option Explicit
Dim con As ADODB.Connection
Private Sub Command1_Click()
If MsgBox("用户注销" & vbCrLf & vbCrLf & "是否注销?", vbInformation + vbYesNo, "用户登陆提示") = vbYes Then
        
        MDIForm1.user.Enabled = False
        MDIForm1.cancel.Enabled = False
        MDIForm1.quit.Enabled = False
        MDIForm1.choice.Enabled = False
        MDIForm1.query.Enabled = False
        MDIForm1.reports.Enabled = False
        MDIForm1.help.Enabled = False
        MDIForm1.Command1.Enabled = False
        MDIForm1.Command2.Enabled = False
        MDIForm1.Command3.Enabled = False
        MDIForm1.Command4.Enabled = False
        MDIForm1.Command5.Enabled = False
        
        MDIForm1.denglu.Enabled = True
        Unload Me
        
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Label1 = "真的要注销用户: " & UserName & " ? (权限 :" & qx & ")"
    Set con = New ADODB.Connection
   con.ConnectionString = Adodc1.ConnectionString
    con.CursorLocation = adUseClient
    con.Open

End Sub

⌨️ 快捷键说明

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