form1.frm

来自「使用VXD实现Win98环境下的文件和目录隐藏,采用VB,vc等编程」· FRM 代码 · 共 83 行

FRM
83
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3192
   ClientLeft      =   60
   ClientTop       =   348
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3192
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text2 
      Height          =   372
      Left            =   240
      TabIndex        =   5
      Top             =   1800
      Width           =   2292
   End
   Begin VB.TextBox Text1 
      Height          =   372
      Left            =   240
      TabIndex        =   2
      Top             =   960
      Width           =   2292
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Stop"
      Height          =   495
      Left            =   3240
      TabIndex        =   1
      Top             =   1440
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Start"
      Height          =   495
      Left            =   3240
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "请输入隐藏数据文件:"
      Height          =   252
      Left            =   240
      TabIndex        =   4
      Top             =   1440
      Width           =   1932
   End
   Begin VB.Label Label1 
      Caption         =   "请输入路径名:"
      Height          =   252
      Left            =   360
      TabIndex        =   3
      Top             =   600
      Width           =   1452
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim a
Private Sub Command1_Click()
Set a = CreateObject("Win98Hide.FileDir")
a.StartHide
a.EnableHide True
If Len(Text1.Text) <> 0 Then
a.PathFromString Text1.Text
Else
    If Len(Text2.Text) <> 0 Then
        a.PathFromFile Text2.Text
    End If
End If

End Sub

Private Sub Command2_Click()
    a.StopHide
End Sub

⌨️ 快捷键说明

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