Advertisement
madcatzano

Untitled

Dec 21st, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public void Connect()
  2. {
  3. if (this.ConnectionState == ConnectionStatus.Connected)
  4. MessageBox(0, "Mar csatlakozva", "Class", MB_OK); return;
  5. this.ConnectionState = ConnectionStatus.Connecting;
  6. MessageBox(0, "Connecting...", "Class", MB_OK);
  7. tmrConnectTimeout.Start();
  8. MessageBox(0, "Connecting...", "Class", MB_OK);
  9. this._client.BeginConnect(this._IP, this._Port, new AsyncCallback(cbConnect), this._client.Client);
  10. MessageBox(0, "Connection begun..", "Class", MB_OK);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement