📄 udp.dfm
字号:
object Form1: TForm1
Left = 192
Top = 107
Width = 579
Height = 419
Caption = 'UDP message Demo http://www.laogu.com 2001.12'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clMaroon
Font.Height = -13
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 16
object Label2: TLabel
Left = 24
Top = 216
Width = 80
Height = 16
Caption = '对方的IP地址:'
end
object Label3: TLabel
Left = 40
Top = 256
Width = 55
Height = 16
Caption = '对方端口:'
end
object Label1: TLabel
Left = 40
Top = 40
Width = 55
Height = 16
Caption = '信息内容:'
end
object Label4: TLabel
Left = 40
Top = 288
Width = 52
Height = 16
Caption = '本机端口'
end
object Label5: TLabel
Left = 400
Top = 40
Width = 68
Height = 16
Caption = '收到的信息:'
end
object Memo1: TMemo
Left = 112
Top = 40
Width = 201
Height = 161
Lines.Strings = (
'hello!')
ScrollBars = ssVertical
TabOrder = 0
end
object Edit1: TEdit
Left = 120
Top = 216
Width = 185
Height = 24
TabOrder = 1
Text = '192.168.0.7'
end
object Edit2: TEdit
Left = 120
Top = 248
Width = 121
Height = 24
TabOrder = 2
Text = '1025'
end
object BitBtn1: TBitBtn
Left = 32
Top = 312
Width = 75
Height = 25
Caption = '发送'
TabOrder = 3
OnClick = BitBtn1Click
end
object Edit3: TEdit
Left = 120
Top = 280
Width = 121
Height = 24
TabOrder = 4
Text = '1025'
end
object CheckBox1: TCheckBox
Left = 120
Top = 320
Width = 153
Height = 17
Caption = '定时发送(每3秒一次)'
TabOrder = 5
end
object Memo2: TMemo
Left = 344
Top = 72
Width = 201
Height = 297
ScrollBars = ssVertical
TabOrder = 6
end
object NMUDP1: TNMUDP
RemoteHost = '192.168.0.7'
RemotePort = 1025
LocalPort = 1025
ReportLevel = 1
OnDataReceived = NMUDP1DataReceived
Left = 40
Top = 88
end
object Timer1: TTimer
Interval = 3000
OnTimer = Timer1Timer
Left = 336
Top = 344
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -