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

📄 mdiform1.frm

📁 vb源码
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.MDIForm MDIForm1 
   Appearance      =   0  'Flat
   BackColor       =   &H8000000C&
   Caption         =   "电脑公司管理系统"
   ClientHeight    =   9480
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   12000
   Icon            =   "MDIForm1.frx":0000
   LinkTopic       =   "MDIForm1"
   LockControls    =   -1  'True
   StartUpPosition =   2  '屏幕中心
   Begin VB.PictureBox Picture1 
      Align           =   1  'Align Top
      Appearance      =   0  'Flat
      AutoRedraw      =   -1  'True
      BackColor       =   &H80000005&
      BorderStyle     =   0  'None
      ForeColor       =   &H80000008&
      Height          =   495
      Left            =   0
      Picture         =   "MDIForm1.frx":27A2
      ScaleHeight     =   495
      ScaleWidth      =   12000
      TabIndex        =   0
      Top             =   0
      Width           =   12000
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   330
         Left            =   6240
         Top             =   240
         Visible         =   0   'False
         Width           =   1200
         _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         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         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 Label14 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "文件 |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H80000010&
         Height          =   330
         Left            =   240
         MouseIcon       =   "MDIForm1.frx":9485
         TabIndex        =   13
         Top             =   120
         Width           =   630
      End
      Begin VB.Label Label13 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "编辑 |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   1080
         TabIndex        =   12
         Top             =   120
         Width           =   630
      End
      Begin VB.Label Label12 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "管理  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   1920
         MouseIcon       =   "MDIForm1.frx":98C7
         TabIndex        =   11
         Top             =   120
         Width           =   735
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "查找  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   2880
         TabIndex        =   10
         Top             =   120
         Width           =   735
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "财务统计 |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   3720
         TabIndex        =   9
         Top             =   120
         Width           =   1050
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "帮助  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   5160
         TabIndex        =   8
         Top             =   120
         Width           =   735
      End
      Begin VB.Image Image2 
         Height          =   510
         Left            =   0
         Picture         =   "MDIForm1.frx":9D09
         Top             =   0
         Width           =   12000
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "文件 |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   240
         MouseIcon       =   "MDIForm1.frx":109EC
         TabIndex        =   7
         Top             =   120
         Width           =   630
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "编辑 |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   1080
         TabIndex        =   6
         Top             =   120
         Width           =   630
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "管理  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   1920
         MouseIcon       =   "MDIForm1.frx":10E2E
         TabIndex        =   5
         Top             =   120
         Width           =   735
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "查找  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   2880
         TabIndex        =   4
         Top             =   120
         Width           =   735
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "统计  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   3840
         TabIndex        =   3
         Top             =   120
         Width           =   735
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "界面  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   4800
         TabIndex        =   2
         Top             =   120
         Width           =   735
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "帮助  |"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   5760
         TabIndex        =   1
         Top             =   120
         Width           =   735
      End
   End
End
Attribute VB_Name = "MDIForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Label1_Click()
Label14.ForeColor = &H80000012
Label13.ForeColor = &H80000012
Label12.ForeColor = &H80000012
Label11.ForeColor = &H80000012
Label10.ForeColor = &H80000012
Label1.ForeColor = &H80000010
End Sub

Private Sub Label10_Click()
Form8.Show
Form4.Hide
Form5.Hide
Form6.Hide
Form7.Hide
End Sub

Private Sub Label10_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label14.ForeColor = &H80000012
Label13.ForeColor = &H80000012
Label12.ForeColor = &H80000012
Label11.ForeColor = &H80000012
Label10.ForeColor = &H80000010
Label1.ForeColor = &H80000012
End Sub

Private Sub Label11_Click()
Form7.Show
Form4.Hide
Form5.Hide
Form6.Hide
Form8.Hide
End Sub

Private Sub Label11_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label14.ForeColor = &H80000012
Label13.ForeColor = &H80000012
Label12.ForeColor = &H80000012
Label11.ForeColor = &H80000010
Label10.ForeColor = &H80000012
Label1.ForeColor = &H80000012
End Sub

Private Sub Label12_Click()
Form6.Show
Form7.Hide
Form5.Hide
Form4.Hide
Form8.Hide
End Sub

Private Sub Label12_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label14.ForeColor = &H80000012
Label13.ForeColor = &H80000012
Label12.ForeColor = &H80000010
Label11.ForeColor = &H80000012
Label10.ForeColor = &H80000012
Label1.ForeColor = &H80000012
End Sub

Private Sub Label13_Click()
Form5.Show
Form6.Hide
Form7.Hide
Form4.Hide
Form8.Hide
End Sub

Private Sub Label13_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label14.ForeColor = &H80000012
Label13.ForeColor = &H80000010
Label12.ForeColor = &H80000012
Label11.ForeColor = &H80000012
Label10.ForeColor = &H80000012
Label1.ForeColor = &H80000012
End Sub

Private Sub Label14_Click()
Form4.Show
Form5.Hide
Form6.Hide
Form7.Hide
Form8.Hide
End Sub

Private Sub Label14_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label14.ForeColor = &H80000010
Label13.ForeColor = &H80000012
Label12.ForeColor = &H80000012
Label11.ForeColor = &H80000012
Label10.ForeColor = &H80000012
Label1.ForeColor = &H80000012
End Sub

Private Sub MDIForm_Load()
MDIForm1.Left = 0
MDIForm1.Height = 9885
MDIForm1.Top = 105
MDIForm1.Width = 12120
Label14.ForeColor = &H80000012
Label13.ForeColor = &H80000012
Label12.ForeColor = &H80000012
Label11.ForeColor = &H80000012
Label10.ForeColor = &H80000012
Label1.ForeColor = &H80000012
Form1.Show
Form4.Show
Form5.Hide
Form6.Hide
Form7.Hide
Form8.Hide

Adodc1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=管理系统"
Adodc1.RecordSource = "SELECT * FROM 货存表 where 数量= 0"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount <> 0 Then
MsgBox "您的库存已有零记录,请添加相应的产品!!"
Form1.Image3.Visible = True
Form1.Image2.Visible = False

Else

Form1.Image3.Visible = False
Form1.Image2.Visible = True
End If

End Sub

⌨️ 快捷键说明

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