private void F_Password_TB_Password_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { Default_OK.PerformClick(); } }
private void F_Password_Load(object sender, EventArgs e) { SetLanguage(); F_Password_TB_Password.Focus(); this.DoForEveryControl(typeof(Label), GetBiggestLabel); SetupTextFields(); Default_OK.Center(this); this.FormBorderStyle = FormBorderStyle.Fixed3D; }