Chat Program with C#

/ Kamis, 17 November 2011 /





Pada pembuatan chat ini, kami memakai VISUAL STUDIO C# 2010, ada pun tahapan –
tahapan yang dilakukan adalah sbb:
Tambahkan dua tombol dengan nama btnConnect dan btnSend. Lalu klik tombol Connect
lalu tambahkan code dibawah ini:
private void btnConnect_Click(object sender, EventArgs e)
{
// If we are not currently connected but awaiting to connect
if (Connected == false)
{
// Initialize the connection
InitializeConnection();
}
else // We are connected, thus disconnect
{
CloseConnection("Disconnected at user's request.");
}
}
Dan klik tombol Send, lalu tambahkan code dibawah ini:
// We want to send the message when the Send button is clicked
private void btnSend_Click(object sender, EventArgs e)
{
SendMessage();
}
READ MORE - Chat Program with C#

Followers

 
Copyright © 2010 keep in touch, All rights reserved
Design by DZignine. Powered by Blogger