Technology (Read Only) > Programming

Visual basic login program

<< < (2/4) > >>

youaintgotnopancakemix:
On topic

ursus:
Do you need the project, or the compiled app?

youaintgotnopancakemix:
Just the code. Feel free to just copy and paste out on here

ursus:

--- Quote from: youaintgotnopancakemix on September 20, 2011, 05:42:55 PM ---Just the code. Feel free to just copy and paste out on here

--- End quote ---


--- Code: ---Public Class Form1
    Dim password = "password"

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = password Then
            MsgBox("Thank you for logging in!")
            Me.Close()
        Else
            MsgBox("Password incorrect.")

        End If
    End Sub
--- End code ---

youaintgotnopancakemix:
Input box and a while loop my teacher says it only need to be four lines

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version