Exemplo n.º 1
0
        private void frmLogin_Load(object sender, EventArgs e)
        {
            try
            {
                dt = ClassTable.getManagerTable();
                this.txtPsw.MaxLength = 6;
                txtPsw.PasswordChar = '*';

                this.comboBox1.DataSource = dt;
                this.comboBox1.DisplayMember = "name";
                this.comboBox1.ValueMember = "No";
                if (this.comboBox1.Items.Count > 0)
                    this.comboBox1.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }