protected virtual void OnConnect(object sender, System.EventArgs e) { if ((entryUser.Text.Length > 0) && (entryPass.Text.Length > 0)) { waitWindow = new WaitWindow(); waitWindow.SetMsg("Registering user and password: Please wait..."); this.Hide(); threadLogin.Start(); } }