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

📄 form6.frm

📁 办公室小车管理系统,能自动打印派车单,自动统计小车的出车里程耗油等.
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "Mscomctl.ocx"
Begin VB.Form Form5 
   BackColor       =   &H00C0FFFF&
   Caption         =   "设置背景"
   ClientHeight    =   5625
   ClientLeft      =   45
   ClientTop       =   345
   ClientWidth     =   8460
   LinkTopic       =   "Form5"
   ScaleHeight     =   5625
   ScaleWidth      =   8460
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command3 
      Caption         =   "祥   图"
      Height          =   372
      Left            =   4680
      TabIndex        =   7
      Top             =   4200
      Width           =   2292
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   252
      Left            =   0
      TabIndex        =   6
      Top             =   5364
      Width           =   8460
      _ExtentX        =   14923
      _ExtentY        =   423
      Style           =   1
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   1
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   312
      Left            =   4080
      Top             =   3600
      Visible         =   0   'False
      Width           =   972
      _ExtentX        =   2117
      _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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\User6\D\deer\BG\BG.MDB;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\User6\D\deer\BG\BG.MDB;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select 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.CommandButton Command2 
      Caption         =   "返  回"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   6480
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   4680
      Width           =   1692
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确  认"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   4200
      TabIndex        =   4
      Top             =   4680
      Width           =   1812
   End
   Begin VB.FileListBox File1 
      Height          =   4410
      Left            =   2040
      TabIndex        =   2
      Top             =   480
      Width           =   1812
   End
   Begin VB.DirListBox Dir1 
      Height          =   4560
      Left            =   240
      TabIndex        =   1
      Top             =   480
      Width           =   1692
   End
   Begin VB.DriveListBox Drive1 
      Height          =   276
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   2292
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BorderStyle     =   1  'Fixed Single
      Caption         =   "图像预览"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   13.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   492
      Left            =   4680
      TabIndex        =   3
      Top             =   480
      Width           =   2412
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      Height          =   3012
      Left            =   4200
      Stretch         =   -1  'True
      Top             =   1080
      Width           =   3732
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'On Error GoTo dd
'Form1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
'Form2.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
Form6.Picture = LoadPicture(File1.Path & "\" & File1.FileName)

Adodc1.Refresh
Adodc1.Recordset.Fields(0) = File1.Path & "\" & File1.FileName
Adodc1.Recordset.UpdateBatch adAffectAll
Form1.Image1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
Form6.Image1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
dd:
'Exit Sub
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click()
Frm6.Show 1
Frm6.Caption = File1.Path & "\" & File1.FileName
Frm6.Image1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
End Sub

Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub

Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub

Private Sub File1_Click()
On Error Resume Next
 
Image1.Picture = LoadPicture(File1.Path & "\" & File1.FileName)
 StatusBar1.SimpleText = File1.Path & "\" & File1.FileName
End Sub

Private Sub Form_Load()
On Error Resume Next
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\BG.MDB;Persist Security Info=False"
  Adodc1.Refresh
'File1.Pattern = "*.bmp;*ico,*.gif;*.jpg"
'bmp; *.ico;jpg;jegp"
End Sub

⌨️ 快捷键说明

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