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

📄 form1.frm

📁 办公室小车管理系统,能自动打印派车单,自动统计小车的出车里程耗油等.
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form1 
   BackColor       =   &H00C0C0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "微山崔庄煤矿车辆管理系统"
   ClientHeight    =   4875
   ClientLeft      =   150
   ClientTop       =   435
   ClientWidth     =   6390
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   MousePointer    =   1  'Arrow
   ScaleHeight     =   4875
   ScaleWidth      =   6390
   StartUpPosition =   1  '所有者中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   315
      Left            =   2160
      Top             =   2400
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=db"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "db"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select qym,bangongr,mm,pmb from sysmdb"
      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.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "车辆管理系统"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   495
      Left            =   1680
      TabIndex        =   4
      Top             =   1440
      Width           =   2775
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "微山崔庄煤矿"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C000&
      Height          =   435
      Index           =   1
      Left            =   1455
      TabIndex        =   3
      Top             =   600
      Width           =   2745
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "微山崔庄煤矿"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   435
      Index           =   0
      Left            =   1815
      TabIndex        =   2
      Top             =   480
      Width           =   2745
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "  登录系统  "
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   16.5
         Charset         =   134
         Weight          =   700
         Underline       =   -1  'True
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   330
      Left            =   600
      MousePointer    =   99  'Custom
      TabIndex        =   1
      Top             =   3120
      Width           =   2115
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "  退出系统   "
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   16.5
         Charset         =   134
         Weight          =   700
         Underline       =   -1  'True
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF00FF&
      Height          =   330
      Left            =   600
      MousePointer    =   99  'Custom
      TabIndex        =   0
      Top             =   3720
      Width           =   2295
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      Height          =   4770
      Left            =   0
      Picture         =   "Form1.frx":000C
      Stretch         =   -1  'True
      Top             =   15
      Width           =   6295
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form6.Show
Form1.Hide

End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
On Error Resume Next
'Label2.Width = Me.ScaleWidth - Label2.Left * 2
'Image1.Width = Form1.ScaleWidth
'Image1.Height = Me.Height
'Image2.Width = Me.ScaleWidth - 2 * Image2.Left
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\BG.MDB;Persist Security Info=False"

Adodc1.Refresh
Adodc1.Recordset.MoveFirst
bangongr = Adodc1.Recordset.Fields(1)
mm = Adodc1.Recordset.Fields(2)
Label2(0).Caption = Adodc1.Recordset.Fields(0)
Label2(1).Caption = Adodc1.Recordset.Fields(0)
qym = Adodc1.Recordset.Fields(0)
Form1.Image1.Picture = LoadPicture(Adodc1.Recordset.Fields(3))
'Form2.Picture = LoadPicture(Adodc1.Recordset.Fields(3))
Form6.Image1.Picture = LoadPicture(Adodc1.Recordset.Fields(3))
'Form1.Visible = True
End Sub

Private Sub Form_Resize()
'Label1.Width = Me.ScaleWidth
'On Error Resume Next
'Label2.Width = Me.ScaleWidth - Label2.Left * 2
'Image1.Width = Form1.ScaleWidth
'Image1.Height = Me.Height
'Image2.Width = Me.ScaleWidth - 2 * Image2.Left
End Sub

Private Sub Label1_Click()
frmLogin1.Show

End Sub

Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.Font.Size = 24
Label1.ForeColor = &HFF00&

End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Label1.Caption = "登录系统"
'Label1.ForeColor = &HFF&
Label1.MousePointer = 99
End Sub

Private Sub Label1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.Font.Size = 16

Label1.ForeColor = &H80FFFF
End Sub

Private Sub Label3_Click()
End

End Sub

Private Sub Label3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.Font.Size = 24

Label3.ForeColor = &HFF0000
End Sub

Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.MousePointer = 99

End Sub

Private Sub Label3_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.Font.Size = 16

Label3.ForeColor = &HC0&

End Sub

Private Sub Timer1_Timer()
Form1.Visible = True
Timer1.Enabled = False
End Sub

⌨️ 快捷键说明

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