Beispiel #1
0
        private void ConsultarUsuario(Object o, EventArgs e)
        {
            try
            {
                Telas.Cadastrar.FrmUsuario fcu = new Cadastrar.FrmUsuario();
                fcu.label1.Text           = "Consultando o Usuário";
                fcu.txtNome.Text          = Convert.ToString(dataGridView1.CurrentRow.Cells[1].Value);
                fcu.txtSenha.Text         = Convert.ToString(dataGridView1.CurrentRow.Cells[2].Value);
                fcu.txtNome.ReadOnly      = true;
                fcu.txtSenha.ReadOnly     = true;
                fcu.txtSenha.PasswordChar = '\0';
                fcu.label4.Visible        = false;
                fcu.txtSenha2.Visible     = false;
                fcu.button1.Visible       = false;

                fcu.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                //throw;
            }
        }
 private void pictureBox6_Click(object sender, EventArgs e)
 {
     Cadastrar.FrmUsuario u = new Cadastrar.FrmUsuario();
     u.ShowDialog();
 }