using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using CoreFS.CA06; namespace Core.LZMes.Client.UIB { public partial class CUIB010302SP : FrmBase { public CUIB010302SP() { InitializeComponent(); } public string ePassWord = "";//存入用户输入的密码 private void button1_Click(object sender, EventArgs e) { try { ePassWord = this.editPassWord.Text.ToString(); //用户输入密码 } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); } this.DialogResult = DialogResult.OK; } private void button2_Click(object sender, EventArgs e) { this.Close(); } private void CUIB010302SP_Activated(object sender, EventArgs e) { this.editPassWord.Focus();//换焦点 } } }