private void AcceptConnection_Click(object sender, EventArgs e) { _asyncSocketServer.StartListeningForIncomingConnection(); if (lblServerStatus == null) { return; } lblServerStatus.Text = @"Listening..."; lblServerStatus.BackColor = Color.Green; lblServerStatus.ForeColor = Color.White; pnlMessages.Visible = true; }