hi xsmithx
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
if ClientSocket1.Active = False then
begin
ClientSocket1.Host := Edit1.Text;
ClientSocket1.Port := 1533;
if Edit1.Text = '' then //put wotever u want to happen here
else ClientSocket1.Active := True;
Button1.Caption := 'Disconnect';
StatusBar1.Panels[0].Text := 'Connected';
end
else
begin
ClientSocket1.Active := True;
ClientSocket1.Close;
Button1.Caption := 'Connect';
StatusBar1.Panels[0].Text := 'Disconnected';
end
i hope thats right
Ciao
-drkdreams