コード例 #1
0
        private void btnSend_Click(object sender, EventArgs e)
        {
            ChatServer obj = (ChatServer)Activator.GetObject(
                typeof(ChatServer),
                serverUrl + "/ChatServer");

            obj.CtoSMessage(tbxName.Text, tbxMsg.Text);
            tbxChat.Text += "\r\n" + "You sent :" + tbxMsg.Text;
            tbxMsg.Text   = string.Empty;
        }