Can you guys tell me why my code gives me this error:
An object reference is required for the nonstatic field, method, or property 'WindowsClient.Form1.Close Connections()'
also i get it on 'WindowsClient.Form1.serverAddress' and on 'WindowsClient.Form1.Connect(string)'
Code:static void Main()
{
Application.Run(new Form1());
Connect(serverAddress);
CloseConnections();
}
public void Connect(string server)
{
//code
}
public void CloseConnections()
{
//code
}
