扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
![]() 图1 主界面 |
procedure TForm1.FormCreate(Sender: TObject); begin self.Caption:=UdpSocket1.LocalHostName; self.Caption:=self.Caption+’:’+UdpSocket1.LocalHostAddr; end; |
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Sockets, ExtCtrls; type TForm1 = class(TForm) UdpSocket1: TUdpSocket; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin self.Caption:=UdpSocket1.LocalHostName; self.Caption:=self.Caption+’:’+UdpSocket1.LocalHostAddr; end; end. |
![]() |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。