Question:

Visual Basic simple coding.. Please answer me.. not give a link about a tutorial.?

by  |  earlier

0 LIKES UnLike

Visual Basic simple coding..?

The user is told to input a password, then after three wrong inputs,the program will close. can you give me the source code?

the form consists of 1 text box, and a command button with the caption "Enter".

I need the code for the command button "Enter". Please and thanks in advance.....!!!!!

 Tags:

   Report

1 ANSWERS


  1. Static numwrong As Integer

    If Text1.Text <> "right" Then

       MsgBox "wrong password"

       numwrong = numwrong + 1

    End If

    If numwrong = 3 Then End

    If Text1.Text = "right" Then

        MsgBox "start main program"

    End If

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.