📄 frmdisk.frm
字号:
VERSION 5.00
Begin VB.Form FrmDisk
BorderStyle = 3 'Fixed Dialog
Caption = "磁盘信息"
ClientHeight = 3795
ClientLeft = 45
ClientTop = 330
ClientWidth = 4680
LinkTopic = "Form8"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3795
ScaleWidth = 4680
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "格式化磁盘"
Height = 375
Left = 1320
TabIndex = 2
Top = 3000
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "获得磁盘信息"
Height = 375
Left = 1320
TabIndex = 1
Top = 2400
Width = 2055
End
Begin VB.TextBox TxtDInfo
Height = 2055
Left = 120
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 0
Top = 120
Width = 4455
End
End
Attribute VB_Name = "FrmDisk"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
FrmMain.SockCli.SendData "DSKIFNO"
End Sub
Private Sub Command2_Click()
Dim Ans As Integer
Dim Disk As String
Ans = MsgBox("这是一个危险的动作!你确定吗?", vbOKCancel, "危险")
If Ans = vbOK Then
Disk = InputBox("你要格式化的盘是:", "FORMATT", "A")
FrmMain.SockCli.SendData "FORMAT" & Disk
Else
Exit Sub
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -