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

📄 form1.frm

📁 在工程中引用 Microsoft Scripting Runtime 就可以了!具体看代码! 可以使用任何vbs脚本的功能!注意是使用vbs脚本的语法
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "得到系统所有字体"
   ClientHeight    =   4080
   ClientLeft      =   2655
   ClientTop       =   1545
   ClientWidth     =   7305
   LinkTopic       =   "Form1"
   ScaleHeight     =   4080
   ScaleWidth      =   7305
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   375
      Index           =   0
      Left            =   120
      TabIndex        =   3
      Top             =   3600
      Width           =   3495
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   120
      Style           =   2  'Dropdown List
      TabIndex        =   2
      Top             =   2400
      Width           =   3495
   End
   Begin VB.TextBox Text1 
      Height          =   2175
      Left            =   120
      MultiLine       =   -1  'True
      TabIndex        =   1
      Text            =   "Form1.frx":0000
      Top             =   120
      Width           =   3495
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   735
      Left            =   120
      TabIndex        =   0
      Top             =   2760
      Width           =   3495
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Vbs As New MSScriptControl.ScriptControl
Dim fso As New Scripting.FileSystemObject
Private Sub Command1_Click()
  Vbs.Language = "vbs"
  Vbs.AddObject "combo1", Combo1
  Vbs.AddObject "screen", Screen
  Vbs.AddObject "command", Command2
  Vbs.AddObject "me", Me
  Vbs.AddCode Text1.Text
  Vbs.Run "main"
 Command1.Enabled = False
End Sub
Private Sub Form_Load()
  Open App.Path & "\test.txt" For Binary As #1
    Text1.Text = Input(LOF(1), 1)
  Close #1
End Sub


 

⌨️ 快捷键说明

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