private void btnSend_Click(object sender, System.EventArgs e) { IntPtr hReceiver = GetReceiver(); if (!ipc.Send(hReceiver, textBox1.Text, Convert.ToInt32(textBox2.Text))) { MessageBox.Show("Sending failed"); } }
private void btnSend_Click(object sender, System.EventArgs e) { IntPtr hHost = IPC.WinExist("Client"); if (!ipc.Send(hHost, textBox1.Text, Convert.ToInt32(textBox2.Text))) { MessageBox.Show("Sending failed"); } }