Ok this is what i have for Code than i'll explain the problem i'm having:
VB Code:
  1. using System;
  2. using System.ComponentModel;
  3. using System.Data;
  4. using System.Drawing;
  5. using System.Text;
  6. using System.Windows.Forms;
  7. using System.IO;
  8. using System.Runtime;
  9. using System.Net;
  10. using Microsoft.VisualBasic;
  11. using System.Net.Sockets;
  12. using System.Collections;
  13. namespace TestClient
  14. {
  15.     public partial class TestClient : Form
  16.     {
  17.         ColumnHeader Header = new ColumnHeader();
  18.         ListViewItem Item = new ListViewItem();
  19.         ArrayList socketList = new ArrayList(5);
  20.         Socket newsock = new Socket(AddressFamily.InterNetwork,
  21.             SocketType.Stream, ProtocolType.Tcp);
  22.         public YahKiller()
  23.         {
  24.             InitializeComponent();
  25.  
  26.         }
  27. private void Timer1_Tick(System.Object eventSender, System.EventArgs eventArgs)
  28.         {
  29.             short i = 0;
  30.             for (i = 0; i <= System.Convert.ToInt16(double.Parse(ServerList.Text) - 1); i++)
  31.             {
  32.                 PacketsLabel.Text = System.Convert.ToString(double.Parse(PacketsLabel.Text) + 1);
  33.  
  34.                 if (newsock(i).Connected == newsock_ConnectEvent(eventSender, eventArgs)) /* this is the line of code i'm having some trouble with*/
  35.                 {
  36.                     string transTemp9 = LoginMod.ClientID[i];
  37.                     string transTemp10 = (backup.Text);
  38.                     newsock.SendFile(testfile.PM(ref transTemp9, ref transTemp10));
  39.                 }
  40.             }
  41.             i = System.Convert.ToInt16(i + 1);
  42.         }
The issue i'm having is with : if (newsock(i).Connected == its the newsock that is giving me the problem,any ideas on the correction of this section of code will be appreciated...Thxs in Advance
Here is the Error:
Error 26 'TestClient.TestClient.newsock' is a 'field' but is used like a 'method'