private void AccountType_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == '\r')
     {
         AccountBalance.Focus( );
     }
 }
        private void CreateAccount_Click(object sender, EventArgs e)
        {
            if (AccountBalance.Text == "" || Interest.Text == "")
            {
                info.Text = "Please fill out both Balance and Interest fields...";
                AccountBalance.Focus( );
                return;
            }
            char[]      ch      = { '-' };
            BankAccount bank    = new BankAccount( );
            string      custno  = comboBox1.Text;
            string      acctype = AccountType.Text;

            string[] temp        = acctype.Split(ch);
            Int16    accounttype = Convert.ToInt16(temp[0]);
            string   amnt        = AccountBalance.Text;
            decimal  amount      = Convert.ToDecimal(amnt);
            decimal  interest    = Convert.ToDecimal(Interest.Text);

            // This call handles Linked List, ArrayList etc
            BankAccount.CreateNewBankAccount(bank, custno, accounttype, amount, interest, "Solo Bank Account created  for Customer " + bank.BankAccountNumber);
            AccountNumber.Text = bank.BankAccountNumber.ToString( );
            info.Text          = "New Bank Account [" + bank.BankAccountNumber.ToString( ) + "] created for Customer " + custno;
            Customer.UpdateCustWithNewBankAccount(Convert.ToInt32(custno), bank.BankAccountNumber, accounttype);
        }