📄 frmsys.frm
字号:
VERSION 5.00
Begin VB.Form FrmSys
Caption = "发送命令"
ClientHeight = 3255
ClientLeft = 60
ClientTop = 450
ClientWidth = 5970
Icon = "FrmSys.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3255
ScaleWidth = 5970
StartUpPosition = 1 '所有者中心
Begin VB.Frame Frame2
Caption = "其他命令"
Height = 1095
Left = 120
TabIndex = 5
Top = 1320
Width = 5655
Begin VB.CommandButton Command2
Caption = "发送"
Height = 375
Left = 4320
TabIndex = 9
Top = 480
Width = 1095
End
Begin VB.OptionButton Option5
Caption = "断开"
Height = 495
Left = 1320
TabIndex = 7
Top = 420
Width = 1095
End
Begin VB.OptionButton Option4
Caption = "关机"
Height = 375
Left = 240
TabIndex = 6
Top = 480
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "播放命令"
Height = 975
Left = 120
TabIndex = 0
Top = 120
Width = 5655
Begin VB.CommandButton Command1
Caption = "发送"
Height = 375
Left = 4320
TabIndex = 4
Top = 360
Width = 1095
End
Begin VB.OptionButton Option3
Caption = "停止"
Height = 375
Left = 2520
TabIndex = 3
Top = 360
Width = 975
End
Begin VB.OptionButton Option2
Caption = "播放"
Height = 255
Left = 1260
TabIndex = 2
Top = 420
Width = 1095
End
Begin VB.OptionButton Option1
Caption = "暂停"
Height = 255
Left = 240
TabIndex = 1
Top = 420
Width = 855
End
End
Begin VB.Label Label1
Caption = "说明:此页面内的命令对象皆为服务器(Server)"
ForeColor = &H000000FF&
Height = 375
Left = 360
TabIndex = 8
Top = 2760
Width = 4575
End
End
Attribute VB_Name = "FrmSys"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim s As String
s = ""
If Option1.Value = True Then s = "Spause"
If Option2.Value = True Then s = "Splay"
If Option3.Value = True Then s = "Sstop"
MDIForm1.Winsock1.SendData s
End Sub
Private Sub Command2_Click()
Dim s As String
s = ""
If Option5.Value = True Then s = "Sshutdown"
If Option4.Value = True Then s = "Sclose"
MDIForm1.Winsock1.SendData s
End Sub
Private Sub Form_Load()
If MDIForm1.Winsock1.State = sckConnected Then
Command1.Enabled = True
Command2.Enabled = True
Else
Command1.Enabled = False
Command2.Enabled = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -