Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Connect()
- {
- if (this.ConnectionState == ConnectionStatus.Connected)
- MessageBox(0, "Mar csatlakozva", "Class", MB_OK); return;
- this.ConnectionState = ConnectionStatus.Connecting;
- MessageBox(0, "Connecting...", "Class", MB_OK);
- tmrConnectTimeout.Start();
- MessageBox(0, "Connecting...", "Class", MB_OK);
- this._client.BeginConnect(this._IP, this._Port, new AsyncCallback(cbConnect), this._client.Client);
- MessageBox(0, "Connection begun..", "Class", MB_OK);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement