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

📄 login7.frm

📁 花图馆管理
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form login7 
   Caption         =   "Form1"
   ClientHeight    =   3795
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6150
   LinkTopic       =   "Form1"
   ScaleHeight     =   3795
   ScaleWidth      =   6150
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "更新"
      Height          =   495
      Left            =   1800
      TabIndex        =   1
      Top             =   3120
      Width           =   1815
   End
   Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
      Height          =   2895
      Left            =   240
      TabIndex        =   0
      Top             =   0
      Width           =   5175
      _ExtentX        =   9128
      _ExtentY        =   5106
      _Version        =   393216
      Rows            =   3
      Cols            =   3
      ScrollBars      =   2
   End
End
Attribute VB_Name = "login7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Call Form_Load

End Sub

Private Sub Form_Load()
Dim rs As ADODB.Recordset
Dim sql As String
Dim i As Integer
sql = "select * from chengji order by 学号"
Set rs = TransactSQL(sql)
MSFlexGrid1.Cols = 5
MSFlexGrid1.FixedCols = 0
MSFlexGrid1.TopRow = 1
MSFlexGrid1.TextMatrix(0, 0) = "班级"
MSFlexGrid1.TextMatrix(0, 1) = "学号"
MSFlexGrid1.TextMatrix(0, 2) = "微机原理"
MSFlexGrid1.TextMatrix(0, 3) = "c语言"
MSFlexGrid1.TextMatrix(0, 4) = "网页设计"
For i = 0 To 4
MSFlexGrid1.ColWidth(i) = 1000
Next i
Set rs = TransactSQL(sql)
MSFlexGrid1.Rows = 1
While Not rs.EOF
MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1
MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, 0) = rs(0)
MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, 1) = rs(1)
MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, 2) = rs(2)
MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, 3) = rs(3)
MSFlexGrid1.TextMatrix(MSFlexGrid1.Rows - 1, 4) = rs(4)
rs.MoveNext
Wend
End Sub

⌨️ 快捷键说明

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