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

📄 frmadmin.frm

📁 一个学生信息管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmadmin 
   Caption         =   "Form1"
   ClientHeight    =   5430
   ClientLeft      =   4650
   ClientTop       =   3165
   ClientWidth     =   7335
   LinkTopic       =   "Form1"
   Picture         =   "frmadmin.frx":0000
   ScaleHeight     =   5430
   ScaleWidth      =   7335
   Begin VB.CommandButton Command2 
      Caption         =   "退 出"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   6120
      TabIndex        =   5
      Top             =   4440
      Width           =   855
   End
   Begin MSFlexGridLib.MSFlexGrid Grid1 
      Height          =   2175
      Left            =   2520
      TabIndex        =   4
      Top             =   360
      Width           =   3255
      _ExtentX        =   5741
      _ExtentY        =   3836
      _Version        =   393216
      Rows            =   10
      Cols            =   3
      AllowUserResizing=   1
   End
   Begin VB.Frame Frame1 
      Caption         =   "发布站内信息"
      Height          =   2415
      Left            =   600
      TabIndex        =   0
      Top             =   2640
      Width           =   5295
      Begin VB.CommandButton Command3 
         Caption         =   "清除"
         Height          =   375
         Left            =   4080
         TabIndex        =   6
         Top             =   1920
         Width           =   855
      End
      Begin VB.CommandButton Command1 
         Caption         =   "发送"
         Height          =   375
         Left            =   3240
         TabIndex        =   2
         Top             =   1920
         Width           =   855
      End
      Begin VB.TextBox Text1 
         Height          =   1455
         Left            =   360
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   1
         Top             =   360
         Width           =   4455
      End
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "用户列表"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1080
      TabIndex        =   3
      Top             =   480
      Width           =   1215
   End
End
Attribute VB_Name = "frmadmin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mrc As ADODB.Recordset
Dim myBookmark As Variant
Dim mcclean As Boolean
Private Sub Command1_Click()
    frmlogin.txtmessage.Text = Text1.Text
    Text1.Text = ""
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Command3_Click()
    frmlogin.txtmessage.Text = ""
    Text1.Text = ""
End Sub

Private Sub Form_Load()
    Dim txtSQL As String
    Dim MsgText As String
    txtSQL = "select * from mima"

    Set mrc = ExecuteSQL(txtSQL, MsgText)
    With Grid1
    .Rows = 2
    .CellAlignment = 4
        .TextMatrix(0, 0) = "用户名"

        .TextMatrix(0, 1) = "用户类型"

    '判断是否移动到数据集的最后
    Do While Not mrc.EOF
       .CellAlignment = 4
       .TextMatrix(.Rows - 1, 0) = mrc.Fields(0)
       .TextMatrix(.Rows - 1, 1) = mrc.Fields(3)
       .Rows = .Rows + 1
       '移动到下一条记录
       mrc.MoveNext
    Loop
  
  End With
  '关闭数据集
  mrc.Close
End Sub

⌨️ 快捷键说明

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