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

📄 frmuserlist.frm

📁 关于记事本的编码,对大家有用
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form frmUserList 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "用户列表"
   ClientHeight    =   3855
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7485
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3855
   ScaleWidth      =   7485
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "关闭"
      Height          =   375
      Index           =   2
      Left            =   6180
      TabIndex        =   3
      Top             =   3390
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "按登陆次数"
      Height          =   375
      Index           =   1
      Left            =   4500
      TabIndex        =   2
      Top             =   3390
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "按姓名"
      Height          =   375
      Index           =   0
      Left            =   3300
      TabIndex        =   1
      Top             =   3390
      Width           =   855
   End
   Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
      Height          =   3225
      Left            =   0
      TabIndex        =   0
      Top             =   30
      Width           =   7455
      _ExtentX        =   13150
      _ExtentY        =   5689
      _Version        =   393216
   End
End
Attribute VB_Name = "frmUserList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    MSFlexGrid1.Cols = g_DBRset.Fields.Count + 1
    For i = 1 To g_DBRset.Fields.Count
        MSFlexGrid1.Row = 0
        MSFlexGrid1.Col = i
        MSFlexGrid1.Text = g_DBRset.Fields.Item(i - 1).Name
    Next i
    i = 1
    g_DBRset.MoveFirst
    While Not g_DBRset.EOF
        MSFlexGrid1.Row = i
        MSFlexGrid1.Col = 0
        MSFlexGrid1.Text = "" & i
        For j = 1 To g_DBRset.Fields.Count
            MSFlexGrid1.Row = i
            MSFlexGrid1.Col = j
            MSFlexGrid1.Text = "" & g_DBRset.Fields.Item(j - 1).Value
        Next j
        g_DBRset.MoveNext
        i = i + 1
        MSFlexGrid1.AddItem Empty
    Wend
End Sub

⌨️ 快捷键说明

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