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

📄 frmusertype.frm

📁 一个关于进销存的源代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmusertype 
   BackColor       =   &H00FF8080&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "用户类型"
   ClientHeight    =   1755
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   3435
   Icon            =   "frmusertype.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1755
   ScaleWidth      =   3435
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   375
      Left            =   2280
      Picture         =   "frmusertype.frx":030A
      TabIndex        =   2
      Top             =   1080
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   375
      Left            =   2280
      Picture         =   "frmusertype.frx":CCF8
      TabIndex        =   1
      Top             =   600
      Width           =   975
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FF8080&
      Caption         =   "Frame1"
      Height          =   1335
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   2055
      Begin VB.OptionButton Option2 
         BackColor       =   &H00FF8080&
         Caption         =   "Option2"
         Height          =   375
         Left            =   240
         TabIndex        =   4
         Top             =   840
         Width           =   1575
      End
      Begin VB.OptionButton Option1 
         BackColor       =   &H00FF8080&
         Caption         =   "Option1"
         Height          =   375
         Left            =   240
         TabIndex        =   3
         Top             =   360
         Width           =   1575
      End
   End
End
Attribute VB_Name = "frmusertype"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
        If Option1.Value = True Then
            idtype = 0
            Unload Me
        ElseIf Option2.Value = True Then
            idtype = 1
            Unload Me
        Else
            tishi = MsgBox("用户类型不能为空!请重新选择", vbOKOnly, "错误")
            frmusertype.Show
        End If
        If id <> "" And psw <> "" Then
             Dim rdst As New ADODB.Recordset
                   rdst.Open "insert into userlist values ('" & id & "','" & psw & "'," & idtype & ")", g_conn
             tishi = MsgBox("添加成功!", vbOKOnly, "添加用户")
        End If
End Sub

Private Sub Command2_Click()
        Unload Me
End Sub
Private Sub Form_Load()
     '   askn.ApplySkin Me.hWnd
        Me.Top = 3900
        Me.Left = 6000
        Frame1.Caption = "--请选择用户类型--"
        Option1.Caption = "管理人员"
        Option2.Caption = "浏览人员"
        Command1.Caption = "确定"
        Command2.Caption = "取消"
        Option1.Value = True

End Sub

⌨️ 快捷键说明

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