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

📄 frmsysset.frm

📁 北大青鸟教学管理系统是学习规范编程范本.功能非常完备,代码编写有章法,不可多得
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form frmSysSet 
   Caption         =   "系统设置"
   ClientHeight    =   2205
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4455
   Icon            =   "frmSysSet.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   ScaleHeight     =   2205
   ScaleWidth      =   4455
   StartUpPosition =   1  '所有者中心
   Begin MSComDlg.CommonDialog ComDlg 
      Left            =   3960
      Top             =   1680
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消(&C)"
      Height          =   350
      Left            =   3480
      TabIndex        =   4
      Top             =   720
      Width           =   855
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定(&O)"
      Height          =   350
      Left            =   3480
      TabIndex        =   3
      Top             =   240
      Width           =   855
   End
   Begin VB.Frame Frame1 
      Caption         =   "系统设置"
      Height          =   2055
      Left            =   60
      TabIndex        =   0
      Top             =   120
      Width           =   3375
      Begin VB.OptionButton OptImage 
         Caption         =   "背景图片"
         Height          =   180
         Left            =   2160
         TabIndex        =   8
         Top             =   240
         Width           =   1095
      End
      Begin VB.OptionButton OptColor 
         Caption         =   "背景颜色"
         Height          =   180
         Left            =   1080
         TabIndex        =   7
         Top             =   240
         Value           =   -1  'True
         Width           =   1095
      End
      Begin VB.PictureBox PicBack 
         Height          =   1095
         Left            =   1080
         ScaleHeight     =   1035
         ScaleWidth      =   1995
         TabIndex        =   6
         Top             =   840
         Width           =   2055
      End
      Begin VB.Label Label3 
         Caption         =   "背景样式"
         Height          =   255
         Left            =   120
         TabIndex        =   9
         Top             =   240
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "背景图片"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   840
         Width           =   735
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "背景颜色"
         Height          =   180
         Left            =   120
         TabIndex        =   2
         Top             =   480
         Width           =   720
      End
      Begin VB.Label labColor 
         BorderStyle     =   1  'Fixed Single
         Height          =   300
         Left            =   1080
         TabIndex        =   1
         Top             =   480
         Width           =   2055
      End
   End
End
Attribute VB_Name = "frmSysSet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
    Dim FileNo As Long
    If OptColor.Value Then
        frmMain.Picture = LoadPicture()
        frmMain.BackColor = labColor.BackColor

    Else
        frmMain.Picture = PicBack.Picture

    End If
    FileNo = FreeFile
    Open App.Path & "\Config.sys" For Output As #FileNo
        If OptColor.Value = True Then
            Print #FileNo, "Color"
            Print #FileNo, labColor.BackColor
        Else
            Print #FileNo, "Image"
            Print #FileNo, ImagePath
        End If
    Close #FileNo
    Unload Me
End Sub

Private Sub Form_Load()
    labColor.BackColor = frmMain.BackColor
    PicBack.Picture = frmMain.Picture
End Sub

Private Sub labColor_Click()
    ComDlg.ShowColor
    labColor.BackColor = ComDlg.Color
End Sub

Private Sub PicBack_Click()
    ComDlg.Filter = "ICO File(*.ico,*.cur)|*.ico,*.cur|Bitmap (*.bmp,*.dib)|*.bmp,*.dib|JPEG(*.jpg)|*.jpg|GIF(*.gif)|*.gif"
    ComDlg.FilterIndex = 3
    ComDlg.ShowOpen
    ImagePath = ComDlg.FileName
    PicBack.Picture = LoadPicture(ImagePath)
End Sub

⌨️ 快捷键说明

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