You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
817 B
C#

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;
}
}
}
}