using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Estsh.Client { public partial class FrmPassword : Form { public FrmPassword() { InitializeComponent(); } public string Password { get { return txtPassword.Text; } } private void FrmPassword_Activated(object sender, EventArgs e) { txtPassword.Focus(); } private void txtPassword_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { this.DialogResult = DialogResult.OK; } } } }