📄 frmpesan.frm
字号:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{BDF6FCF6-E2A0-4DA6-8DF8-FA27594705C8}#26.1#0"; "XPControls.ocx"
Begin VB.Form FrmPesan
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
Caption = "Pesan"
ClientHeight = 6120
ClientLeft = 4980
ClientTop = 1845
ClientWidth = 7200
Icon = "FrmPesan.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6120
ScaleWidth = 7200
ShowInTaskbar = 0 'False
Begin XPControls.XPFrame XPFrame1
Height = 1095
Left = 120
TabIndex = 0
Top = 4920
Width = 6975
_ExtentX = 12303
_ExtentY = 1931
BackColor = 12648384
Caption = ""
Style = 2
ForeColor = -2147483630
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Begin XPControls.XPFrame XPFrame2
Height = 855
Left = 120
TabIndex = 1
Top = 120
Width = 6735
_ExtentX = 11880
_ExtentY = 1508
BackColor = 16777215
Caption = ""
Style = 2
ForeColor = -2147483630
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Begin VB.TextBox TxtKirimPesan
Appearance = 0 'Flat
BackColor = &H00FCF2DC&
ForeColor = &H00B54524&
Height = 375
Left = 120
TabIndex = 2
Top = 240
Width = 3735
End
Begin XPControls.XPButton CmdKirim
Height = 375
Left = 4200
TabIndex = 3
Top = 240
Width = 1095
_ExtentX = 1931
_ExtentY = 661
Caption = "Send"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 11879716
End
Begin XPControls.XPButton XPButton1
Height = 375
Left = 5400
TabIndex = 4
Top = 240
Width = 1095
_ExtentX = 1931
_ExtentY = 661
Caption = "Tutup"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 11879716
End
End
End
Begin XPControls.XPFrame XPFrame3
Height = 4695
Left = 120
TabIndex = 5
Top = 120
Width = 6975
_ExtentX = 12303
_ExtentY = 8281
BackColor = 12648384
Caption = ""
Style = 2
ForeColor = -2147483630
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Begin XPControls.XPFrame XPFrame4
Height = 4455
Left = 120
TabIndex = 6
Top = 120
Width = 6735
_ExtentX = 11880
_ExtentY = 7858
BackColor = 16761024
Caption = ""
Style = 2
ForeColor = -2147483630
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Begin RichTextLib.RichTextBox Txtterimapesan
Height = 4215
Left = 120
TabIndex = 7
Top = 120
Width = 6495
_ExtentX = 11456
_ExtentY = 7435
_Version = 393217
ReadOnly = -1 'True
ScrollBars = 3
Appearance = 0
TextRTF = $"FrmPesan.frx":719A
End
End
End
Begin VB.Image Image1
Height = 6120
Left = 0
Picture = "FrmPesan.frx":721C
Stretch = -1 'True
Top = 0
Width = 7200
End
End
Attribute VB_Name = "FrmPesan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const HWND_TOPMOST = -1
Const SWP_NOSIZE = &H1
Private Declare Sub SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal HWNDinsertafter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
Private Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
Private Sub CmdKirim_Click()
If FrmMain.Winsock.State = sckConnected Then
FrmMain.Winsock.SendData "pesan|" & FrmMain.Winsock.LocalIP & "|" & TxtKirimPesan.Text & "|_|_|"
TxtKirimPesan.Text = ""
End If
End Sub
Private Sub Form_Activate()
FrmPesan.TxtKirimPesan.SetFocus
End Sub
Private Sub Form_Load()
BringWindowToTop Me.hwnd
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE
frmpesanload = True
End Sub
Private Sub Form_Unload(Cancel As Integer)
frmpesanload = False
End Sub
Private Sub TxtKirimPesan_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Call CmdKirim_Click
End If
End Sub
Private Sub XPButton1_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -