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

📄 skin.frm

📁 进销存管理系统,我是个新手,请大家多多帮助哈1
💻 FRM
字号:
VERSION 5.00
Begin VB.Form skin 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "界面设置"
   ClientHeight    =   3765
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5550
   Icon            =   "skin.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3765
   ScaleWidth      =   5550
   StartUpPosition =   3  '窗口缺省
   Begin 工程1.XPContainer XPContainer1 
      Height          =   3735
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   5535
      _extentx        =   9763
      _extenty        =   6588
      headerlightcolor=   15526633
      headerdarkcolor =   14276307
      backlightcolor  =   14737632
      backdarkcolor   =   12632256
      bordercolor     =   8421504
      textcolor       =   4867908
      style           =   1
      theme           =   10
      Begin 工程1.isButton isButton3 
         Height          =   300
         Left            =   2400
         TabIndex        =   8
         Top             =   960
         Width           =   1095
         _extentx        =   1931
         _extenty        =   529
         icon            =   "skin.frx":058A
         style           =   8
         caption         =   "选择"
         iconalign       =   1
         inonthemestyle  =   0
         tooltiptitle    =   ""
         tooltipicon     =   0
         tooltiptype     =   0
         ttforecolor     =   0
         font            =   "skin.frx":0926
      End
      Begin VB.TextBox txt_lab 
         Appearance      =   0  'Flat
         BorderStyle     =   0  'None
         Height          =   255
         Left            =   1560
         TabIndex        =   6
         Top             =   360
         Width           =   2495
      End
      Begin 工程1.isButton isButton2 
         Height          =   495
         Left            =   3840
         TabIndex        =   5
         Top             =   1200
         Width           =   1215
         _extentx        =   2143
         _extenty        =   873
         icon            =   "skin.frx":094E
         style           =   8
         caption         =   "   设置背景"
         iconalign       =   1
         inonthemestyle  =   0
         tooltiptitle    =   ""
         tooltipicon     =   0
         tooltiptype     =   0
         ttforecolor     =   0
         font            =   "skin.frx":0EEA
      End
      Begin VB.TextBox Txt_Bg 
         Appearance      =   0  'Flat
         BorderStyle     =   0  'None
         Height          =   255
         Left            =   120
         TabIndex        =   4
         Top             =   1320
         Width           =   3365
      End
      Begin 工程1.isButton isButton1 
         Height          =   495
         Left            =   4200
         TabIndex        =   2
         Top             =   240
         Width           =   1215
         _extentx        =   2143
         _extenty        =   873
         icon            =   "skin.frx":0F12
         style           =   8
         caption         =   "   设置标题"
         iconalign       =   1
         inonthemestyle  =   0
         tooltiptitle    =   ""
         tooltipicon     =   0
         tooltiptype     =   0
         ttforecolor     =   0
         font            =   "skin.frx":14AE
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "说明:   1.0版不提供界面个性化设置,暂时提供预览,下一个版本将时界面更加的漂亮"
         ForeColor       =   &H000000FF&
         Height          =   615
         Left            =   120
         TabIndex        =   9
         Top             =   2400
         Width           =   2415
      End
      Begin VB.Image Image1 
         BorderStyle     =   1  'Fixed Single
         Height          =   1815
         Left            =   2640
         Stretch         =   -1  'True
         Top             =   1800
         Width           =   2775
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "背景图片预览:"
         Height          =   255
         Left            =   1080
         TabIndex        =   7
         Top             =   1800
         Width           =   1335
      End
      Begin VB.Shape Shape2 
         BorderColor     =   &H00808080&
         BorderWidth     =   2
         Height          =   265
         Left            =   1560
         Top             =   360
         Width           =   2505
      End
      Begin VB.Shape Shape1 
         BorderColor     =   &H00808080&
         BorderWidth     =   2
         Height          =   270
         Left            =   120
         Top             =   1320
         Width           =   3375
      End
      Begin VB.Line Line2 
         BorderColor     =   &H00FFFFFF&
         X1              =   0
         X2              =   5520
         Y1              =   840
         Y2              =   840
      End
      Begin VB.Line Line1 
         BorderColor     =   &H00C0C0C0&
         BorderWidth     =   2
         X1              =   0
         X2              =   5520
         Y1              =   840
         Y2              =   840
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "软件背景图设置(图片地址:)"
         Height          =   255
         Left            =   120
         TabIndex        =   3
         Top             =   1000
         Width           =   2295
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "软件标题设置:"
         Height          =   255
         Left            =   120
         TabIndex        =   1
         Top             =   480
         Width           =   1215
      End
   End
End
Attribute VB_Name = "skin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
  'ini文件操作
Private Declare Function GetPrivateProfileString Lib "kernel32" _
   Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, _
   ByVal lpKeyName As Any, ByVal lpDefault As String, _
   ByVal lpReturnedString As String, ByVal nSize As Long, _
   ByVal lpFileName As String) As Long
Private Declare Function WritePrivateProfileString Lib "kernel32" _
   Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, _
   ByVal lpKeyName As Any, ByVal lpString As Any, _
   ByVal lpFileName As String) As Long

Private Sub Form_Load()
Dim ret As Long
Dim buff As String
Dim cap As String
Dim bg As String
buff = String(255, 0)
ret = GetPrivateProfileString("软件设置", "软件标题设置", cap, buff, 256, App.Path & "\set.ini")
cap = buff
txt_lab.Text = cap
ret = GetPrivateProfileString("软件设置", "背景设置", bg, buff, 256, App.Path & "\set.ini")
bg = buff
Txt_Bg.Text = bg
Image1.Picture = LoadPicture(Txt_Bg.Text)
End Sub

Private Sub isButton1_Click()
success = WritePrivateProfileString("软件设置", "软件标题设置", txt_lab.Text, App.Path & "\set.ini")
MsgBox "设置软件标题成功", vbInformation
End Sub

Private Sub isButton2_Click()
Dim success As String


success = WritePrivateProfileString("软件设置", "背景设置", Txt_Bg.Text, App.Path & "\set.ini")
MsgBox "设置软件背景成功", vbInformation
End Sub

Private Sub isButton3_Click()
Dim sFile As String
    sFile = ShowOpen
   If sFile <> "" Then
       
        Image1.Picture = LoadPicture(sFile)
         Txt_Bg.Text = sFile
    Else
        MsgBox "您没有选择任何图形文件"
    End If
End Sub

⌨️ 快捷键说明

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