private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { Process.Start("MSInfo32.exe"); } catch { } okButton.Focus(); }
private void LoginForm_Load(object sender, EventArgs e) { if (txtUserName.Text == string.Empty) { txtUserName.Focus(); } else if (txtPassword.Text == string.Empty) { txtPassword.Focus(); } else { btnOK.Focus(); } }