I've been at this all afternoon and can't figure a way around it. The method has to be static so that is not an option of not being static. Here's the code:
lstMsg is not available but I can't figure out why. I would greatly appreciate any assistance with this.
Code:
private static void ConnectionFilter(String sRemoteAddress, int nRemotePort, Socket sock)
{
lstMsg.Items.Add("Connection request from " + sRemoteAddress + ":" + nRemotePort.ToString());
}
lstMsg is not available but I can't figure out why. I would greatly appreciate any assistance with this.