Ok This post carries on from the Last Errors where WokeWidget helped with his TCPConnection Code.....

I'm getting 2 Errors and here they are::

Code:
Error	1	The type or namespace name 'SocketDataArrival' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\jerry\My Documents\Visual Studio 2005\Projects\DemonBytes\DemonBytes\TCPConnection.cs	6	18	DemonBytes


Error	2	The type or namespace name 'DisconnectedEventHandler' could not be found (are you missing a using directive or an assembly reference?)	C:\Documents and Settings\jerry\My Documents\Visual Studio 2005\Projects\DemonBytes\DemonBytes\TCPConnection.cs	7	18	DemonBytes
Both the Errors are on the same .cs file Named TCPConnection.cs

Here is the Code::
Code:
public class TCPConnection
{
    public event SocketDataArrival.EventHandler DataArrived;
    public event DisconnectedEventHandler Disconnected;
    private const int READ_BUFFER_SIZE = 255;
    private System.AsyncCallback _ReadCallBack;
    private string _HostAddress;
    private int _Port;
    private TcpClient _TCPClient;
    private NetworkStream _NS;
    private StreamWriter _SW;
    private byte[] _Buffer = new byte[READ_BUFFER_SIZE - 1];
    private delegate void RaiseReceiveEvent(byte[] Data);
    private System.ComponentModel.ISynchronizeInvoke _SyncObject;
Now the SocketDataArrival is Underlined in a Blue Siggly Line along with DisconnectedEventHandler...

That is just some of the Code WokaWidget gave me which you can find in my last Post for Help....The Code is on its own .cs file, and in the Form Body when i type TCPConnection the Drop Down Box appears for the IntelliSence allowing me too Choose it..

I have used the TCPConnection in a few places here they are::
Code:
private void Socket_DataArrival(object eventSender, TCPConnection eventArgs)
        { ....} // Cut the code Short

private void Socket_Error(object eventSender, TCPConnection eventArgs)
        {
            short Index = Socket.GetIndex(eventSender);
            toolStripStatusLabel1.Text = "Status: Error";
            Socket(Index).Close();
        }
private void Timer1_Tick(object eventSender, System.EventArgs eventArgs)
        {
            short i;
            for (int i = 0; i <= System.Convert.ToDouble(BotsList.Text) - 1; i++)
            {
                PacketsLabel.Text = System.Convert.ToString(System.Convert.ToDouble(PacketsLabel.Text) + 1);
                if (Socket(i).CtlState == TCPConnection)
The Section of Code i didnt Introduce because i didnt know where it was suppose to fit into my Code

Code:
private TCPConnection _TCPConn; 

private bool Connect(string HostName, int Port) 
{ 
 _TCPConn = new TCPLibrary.TCPConnection(this, HostName, Port); 
} 

private void _TCPConn_DataArrived(byte[] Data) 
{ 
 string DataString = System.Text.Encoding.ASCII.GetString(Data, 0, Data.GetLength(0)); 
 DataArrived(DataString); 
}
Any and all help on this Issue will be Greatly Appreciated Thxs..Rattlerr