void __fastcall TForm1::IniciarSesion1Click(TObject *Sender)
{
if (ClientSocket->Active)
{
ClientSocket->Active = false;
}
// if (InputQuery("Conectar Computadora A", "Direccion IP:", Server))
if (InputQuery("Computer to connect to", "Address Name:", Server))
{
if (Server.Length() > 0)
{
ClientSocket->Host = Server;
ClientSocket->Active = true;
IniciarSesion1->Checked = 0;
}
} // CODIGO PARA INICIAR EL CHATEO, AGREGUE LO NECESARIO
}
//---------------------------------------------------------------------------
P.S. quiero hacerlo parecido al de MSN, ojalas me ayuden





