i want write a chatroom with c# and Tcp but i have Threadpool.cs not found error.
how to can i fix this ? this is my code.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace Client
{
public partial class Client : Form
{
Socket socClient = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
public Client()
{
InitializeComponent();
}
private void btnConnect_Click(object sender, EventArgs e)
{
IPEndPoint ipServer = new IPEndPoint(IPAddress.Parse(txtIp.Text), int.Parse(txtPort.Text));
socClient.Connect(ipServer);
}
}
}