private void TinyVpnUI_Load(object sender, EventArgs e) { this.panel1.Enabled = false; client = new TinyVpnClient(); client.ClientException += client_ClientException; client.ClientMassage += client_ClientMassage; client.ConnectionStatusChanged += client_ConnectionStatusChanged; client.ClientDialCompleted += client_ClientDialCompleted; client.ClientInitializeCompleted += client_ClientInitializeCompleted; new Thread(delegate() { client.Initialize(); }).Start(); }