private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                Process.Start("MSInfo32.exe");
            }
            catch
            {
            }

            okButton.Focus();
        }
Пример #2
0
 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();
     }
 }