📄 form1.frm
字号:
VERSION 5.00
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form Form1
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
BorderStyle = 0 'None
Caption = "双合棋"
ClientHeight = 6570
ClientLeft = 0
ClientTop = 0
ClientWidth = 9060
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "Form1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "Form1.frx":57E2
ScaleHeight = 6570
ScaleWidth = 9060
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin MSWinsockLib.Winsock Winsock1
Left = 360
Top = 6300
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
Begin VB.CommandButton Command3
BackColor = &H009FD2FF&
Default = -1 'True
BeginProperty Font
Name = "华文细黑"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 8580
MaskColor = &H00003767&
Picture = "Form1.frx":EC37
Style = 1 'Graphical
TabIndex = 10
Top = 5520
UseMaskColor = -1 'True
Width = 315
End
Begin VB.TextBox Text2
BackColor = &H009FD2FF&
Height = 495
Left = 6090
TabIndex = 9
Top = 5490
Width = 2445
End
Begin VB.TextBox Text1
BackColor = &H009FD2FF&
ForeColor = &H00003767&
Height = 1755
Left = 6090
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 8
Top = 3630
Width = 2745
End
Begin VB.CommandButton Command2
Height = 375
Left = 7530
Picture = "Form1.frx":10D74
Style = 1 'Graphical
TabIndex = 7
Top = 6090
Width = 1335
End
Begin VB.CommandButton Command1
Appearance = 0 'Flat
BackColor = &H00000000&
Height = 375
Left = 6090
Picture = "Form1.frx":136CD
Style = 1 'Graphical
TabIndex = 6
Top = 6090
Width = 1305
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
BackColor = &H00609FD5&
FillStyle = 0 'Solid
Height = 5430
Left = 210
MouseIcon = "Form1.frx":16011
Picture = "Form1.frx":1C863
ScaleHeight = 5370
ScaleMode = 0 'User
ScaleWidth = 5475
TabIndex = 0
Top = 810
Width = 5535
End
Begin VB.Label renshu
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "认输"
ForeColor = &H00609FD5&
Height = 180
Left = 4470
TabIndex = 17
Top = 510
Width = 360
End
Begin VB.Label qiuhe
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "求和"
ForeColor = &H00609FD5&
Height = 180
Left = 4950
TabIndex = 16
Top = 510
Width = 360
End
Begin VB.Label huiqi
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "悔棋"
ForeColor = &H00609FD5&
Height = 180
Left = 5430
TabIndex = 15
Top = 510
Width = 360
End
Begin VB.Label About
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "关于作者"
ForeColor = &H009FD2FF&
Height = 180
Left = 1320
TabIndex = 14
Top = 420
Width = 720
End
Begin VB.Label Law
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "游戏规则"
ForeColor = &H009FD2FF&
Height = 180
Left = 390
TabIndex = 13
Top = 420
Width = 720
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Height = 315
Left = 0
TabIndex = 12
Top = 0
Width = 9015
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Height = 405
Left = 30
TabIndex = 11
Top = 0
Width = 5865
End
Begin VB.Label lblInfo
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "未连线"
Height = 180
Left = 1980
TabIndex = 5
Top = 6300
Width = 540
End
Begin VB.Label lblWhiteScore
BackStyle = 0 'Transparent
Caption = "lblWhiteScore"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00003767&
Height = 210
Left = 6630
TabIndex = 4
Top = 3000
Width = 2085
End
Begin VB.Label lblWhiteName
BackStyle = 0 'Transparent
Caption = "lblWhiteName"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00003767&
Height = 210
Left = 6600
TabIndex = 3
Top = 2580
Width = 2100
End
Begin VB.Label lblBlackScore
BackStyle = 0 'Transparent
Caption = "lblBlackScore"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00003767&
Height = 210
Left = 6600
TabIndex = 2
Top = 2070
Width = 2115
End
Begin VB.Label lblBlackName
BackStyle = 0 'Transparent
Caption = "1b1BlackName"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00003767&
Height = 210
Left = 6600
TabIndex = 1
Top = 1680
Width = 2130
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim Tsx As Integer, Tsy As Integer
Dim CX As Integer, CY As Integer
Private Sub About_Click()
FrmAbout.Show
End Sub
Private Sub Command1_Click()
'重开一局
Reset
If Winsock1.State = sckConnected Then
Send "3"
End If
If (win(1) + lost(1)) Mod 2 + 1 = Server Then
Picture1.Enabled = True '根据局数交换双方先手。
End If
Command1.Enabled = False
End Sub
Private Sub Command2_Click()
If Winsock1.State = sckConnected Then
Send "4"
DoEvents
End If
Winsock1.Close
End
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -