protected override void OnLeave(EventArgs e) { _enteredPassword = this.Text; this.Text = EncryptedMarker; this.PasswordChar = '\0'; }