Preview

ATM sample program

Satisfactory Essays
Open Document
Open Document
1001 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
ATM sample program
Splash screen

Loading

Public Class Loading

Private Sub Loading_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Start() CircularProgress1.IsRunning = Not CircularProgress1.IsRunning End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick CircularProgress1.Minimum = CircularProgress1.Minimum + 2 lbl_time.Text = CircularProgress1.Minimum If lbl_time.Text = CircularProgress1.Maximum Then Main.Show() Me.Close() Timer1.Stop() End If End Sub

Private Sub CircularProgress1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CircularProgress1.ValueChanged

End Sub
End Class

Log-in

Imports System.Data.OleDb
Public Class Login Public constr As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|datadirectory|\atm.accdb;persist security info= false" Public con As New OleDbConnection Private Sub Login_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con.ConnectionString = constr If con.State = ConnectionState.Closed Then con.Open() End If End Sub Private Sub btn_login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_login.Click Dim dr As OleDbDataReader Dim cmd As New OleDbCommand cmd.Connection = con cmd.CommandText = "SELECT * FROM Account WHERE Username = '" & txt_user.Text & "' and Password = '" & txt_pin.Text & "'" dr = cmd.ExecuteReader

If dr.HasRows = False Then MsgBox("INVALID USERNAME OR PIN CODE", vbCritical) Exit Sub End If Loading.Show() Me.Hide() With dr.Read

You May Also Find These Documents Helpful

  • Good Essays

    Acct212 Course Project 1

    • 1008 Words
    • 5 Pages

    1. SWOT analysis is a marketing strategy used to find a company’s strengths and opportunities for a manager to take full advantage of them. The other two words are in the acronym are weaknesses and threats which the manager will try to work around or improve. This is needed for a company to make a marketing strategy and to become better than the competition. For example, if two companies both sold movies and they were pretty much the same in everything they do, people would go to either. But if one of those companies did a SWOT analysis and found that they can make finding these movies in the store a lot easier, then maybe they can attract more customers to their store. This would be seizing more opportunities and adding to their strengths. (pg. 49)…

    • 1008 Words
    • 5 Pages
    Good Essays
  • Better Essays

    Create a Windows application that contains two textboxes and two buttons. One of thetextboxes and one of the buttons are initially invisible. The first textbox should be used to input a password. The textbox should be masked to some character of your choice so that the characters entered by the user are not seen on the screen. When the user clicks the first button, the second textbox and button should be displayed with a prompt asking the user to reenter his or her password. Now, when the user clicks the second button, have the application compare the values entered to make sure they are the same. Display an appropriate message indicating whether they are the…

    • 1713 Words
    • 7 Pages
    Better Essays
  • Good Essays

    A computer can be defined as a set of tools that helps you perform information-processing tasks.…

    • 663 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    econ1000 testbank ch01

    • 11901 Words
    • 73 Pages

    C) the study of how producers decide what inputs to hire and what outputs to produce…

    • 11901 Words
    • 73 Pages
    Powerful Essays
  • Good Essays

    Econ 5200

    • 556 Words
    • 3 Pages

    How can bursting of an asset-price bubble in the stock market help trigger a financial crisis?…

    • 556 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    8. The division of profits and losses among the members of a partnership is formalized in the: A. B. C. D. E. indemnity clause. indenture contract. statement of purpose. partnership agreement. group charter.…

    • 8362 Words
    • 34 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Arm project

    • 364 Words
    • 2 Pages

    I will upload it latest v uwi.l upload later I will upload it latest v uwi.l upload later I will upload it latest v uwi.l upload later I will upload it latest v uwi.l upload laterI will upload it latest v uwi.l upload laterI will upload it latest v uwi.l upload laterI will upload it latest v uwi.l uplI will upload it laI will I will upload it latest v uwi.l upload laterI will upload it latest v uwi.l upload lateruploI will upload it latest v uwi.l upload laterad it latest v uwi.l upload latertest vI wilI will upload it I will upload it latest v uwi.l upload laterlatest v uwi.l upload laterl upload it latest v uwi.l upload later uI will upload I will upload it latest v uwi.l upload laterit latest v uwi.l upload laterwi.l upload lateroad laterI will upload it latest v uI will upload it lateI will upload it latest v uwi.l upload laterst v uwi.l upload laterwi.l upload laterI will upload it latest v uwi.l upload laterI will upload it latest v uwI will upload it latest v uwi.l upload lateri.l upload I wI will upload it latest v uwi.l upload laterill upload it latest v uwi.l upload laterlaterI will upload it latest v uwi.l upload laterI will upload it latest v uwi.l upload laterI will upload it latest v uwI will upload it latest v uwi.l upload lateri.l upload laterI will upload it latest v uwi.l upload laterI will upload it latest v uwi.l uploadI will upload it latestI will uI will I will uI will upI will upload it latest v uwi.l upload laterload it latest v uwi.l upload laterpload it latest v uwi.l upload laterupload it latest v uwi.l upload laterpload it latest v uwi.l upload later v uwi.l upload later laterI will upload it latI will upload it latest v uwi.l upload laterest v uwi.l upload laterI will upload it latest v uwi.l upload…

    • 364 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    (1) .model small .stack 100h .data dis1 db "Enter First Character:$" dis2 db "Enter Second Character:$" nme db "ASSEMBLY$" .code start: mov ax, @data mov ds, ax mov ah, 9h lea dx, dis1 int 21h mov ah, 1h int 21h mov bl, al mov ah, 2h mov dl, 0ah int 21h mov dl, 0dh int 21h mov ah, 9h lea dx, dis2 int 21h mov…

    • 1874 Words
    • 8 Pages
    Satisfactory Essays
  • Better Essays

    The Ames test is a biological assay to assess the mutagenic potential of chemical compounds.[1] A positive test indicates that the chemical is mutagenic and therefore may act as a carcinogen, since cancer is often linked to mutation. However, a number of false-positives and false-negatives are known.[2] The test serves as a quick and convenient assay to estimate the carcinogenic potential of a compound since standard carcinogen assays on rodents are time-consuming (taking two to three years to complete) and expensive. The procedure is described in a series of papers from the early 1970s by Bruce Ames and his group at the University of California, Berkeley.…

    • 1343 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    1) ________ consists of specific learned norms based on attitudes, values, and beliefs of a group of people.…

    • 6590 Words
    • 34 Pages
    Satisfactory Essays
  • Powerful Essays

    Test Bank of Econ

    • 33450 Words
    • 134 Pages

    5) Which of the statements below best illustrates the use of the market process in determining the…

    • 33450 Words
    • 134 Pages
    Powerful Essays
  • Satisfactory Essays

    Economics Test Bank

    • 55858 Words
    • 224 Pages

    When an SSU owns a financial claim created by financial intermediation, its residual claim is against a DSU.…

    • 55858 Words
    • 224 Pages
    Satisfactory Essays
  • Satisfactory Essays

    adfadf

    • 268 Words
    • 2 Pages

    Lesson A: Contestant Solution Contestant Solution’s Codes: Public Class frmMain Private Sub btnExit_Click(ByVal sender As Object, ByVal e As System. EventArgs) Handles btnExit.…

    • 268 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Eco Atm

    • 492 Words
    • 2 Pages

    Almost all consumer electronics contain toxic materials such as lead, mercury, arsenic and a broad variety of other materials that pose a threat to the environment and health. Now multiple these hazards by 3 billion! Concerned now?…

    • 492 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Educated Filipino

    • 564 Words
    • 3 Pages

    Dim db As New OleDbCommand("Select * From login Where username='" & a & "'", con)…

    • 564 Words
    • 3 Pages
    Satisfactory Essays

Related Topics