//BINA SARANA INFORMATIKA//
//Coding by Lhourens...//
//Target IP_ADDRESS V4//
--------------------------------------------------------------------------------------------
unit IP_ADDRESS;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, IdBaseComponent, IdComponent, IdIPWatch;
type
TForm1 = class(TForm)
IdIPWatch1: TIdIPWatch;
Edit1: TEdit;
Button1: TButton;
Timer1: TTimer;
Label1: TLabel;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Timer1.Enabled:=True;
Edit1.Text:='Melihat Dulu...';
If Edit1.Text = 'Melihat Dulu...' Then Begin
Label2.Caption :='Stand By...Brow';
End;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Edit1.Text:=Form1.IdIPWatch1.LocalIP;
Label2.Caption :='IP ADDRESS ANDA SUDAH DITEMUKAN..';
end;
end.
//Coding by Lhourens...//
//Target IP_ADDRESS V4//
--------------------------------------------------------------------------------------------
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, IdBaseComponent, IdComponent, IdIPWatch;
type
TForm1 = class(TForm)
IdIPWatch1: TIdIPWatch;
Edit1: TEdit;
Button1: TButton;
Timer1: TTimer;
Label1: TLabel;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Timer1.Enabled:=True;
Edit1.Text:='Melihat Dulu...';
If Edit1.Text = 'Melihat Dulu...' Then Begin
Label2.Caption :='Stand By...Brow';
End;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Edit1.Text:=Form1.IdIPWatch1.LocalIP;
Label2.Caption :='IP ADDRESS ANDA SUDAH DITEMUKAN..';
end;
end.
Tags
Delphi 7