When open Window in callback method of socket.BeginReceive , display error : The calling thread must be STA, because many UI components require this.
int id = pr.ReadInt32();
BinaryWriter bw = new BinaryWriter();
if (!InCall)
{
string name = null;
Incoming_Call IncmCall = new Incoming_Call();
InCall = (bool)IncmCall.ShowDialog();