vb set a password to prevent login software problems

Updated on technology 2024-04-28
12 answers
  1. Anonymous users2024-02-08

    'Let's say your login window has a textbox control called text1 that you use to enter your password; A button, called CMDOK, is used to click to log in; Form form1 is the form to be displayed after you enter the password, then use the following **.

    private sub cmdok_click()if = "password" then 'Change password to your password.

    unload me

    elsemsgbox "The password is incorrect, please re-enter it. "

    end if

    end sub

  2. Anonymous users2024-02-07

    private sub cmdok_click()if = "vb01" and = "123" thent1 = msgbox("VB01 landed successfully", ,"System prompts")elseif ="vb02" and = "123" thent2 = msgbox("VB02 landed successfully", ,"System prompts")else

    t2 = msgbox("The username or password is incorrect", ,"System prompts")end if

    end sub

  3. Anonymous users2024-02-06

    That's a problem with the charging system of the Internet café.,Can you continue to play on it? If you don't log in, you can't log in, you can't pick up the account at the bar, and you can't open a card.

  4. Anonymous users2024-02-05

    It's hard to find this kind of source file, and I think you want to use it to the worst of it, huh?

    This kind of source file can be said to say that unless the respondent makes up one himself, 95% of the people don't have this thing, and it takes months or even a year to compile this, do you think someone will be stupid to give you the fruits of hard work for a long time to do so many bad things? Think for yourself!

  5. Anonymous users2024-02-04

    Set the passwordchar property of the text box to"*"

    This can be set directly in the properties window or in the program.

    private sub form_load()= "*"

    end sub

  6. Anonymous users2024-02-03

    Set the passwordchar of your text control to *

  7. Anonymous users2024-02-02

    MD5 Common encryption method MD5 (string).

    MD5 module.

  8. Anonymous users2024-02-01

    Add a verification before executing the main program.

    Or do a verification project on its own.

    After the passage of another file is executed.

    Otherwise, it will not be executed.

  9. Anonymous users2024-01-31

    Let's say it's just a fixed password, simple encryption.

    Set a form 2 to start, then add a text box to form 2, and use a button to compare the content of the text box and the password set, and start form 1 in the same way

  10. Anonymous users2024-01-30

    Strange question, you ** write directly as: whether the password entered in the text box ="password"Isn't that enough?

  11. Anonymous users2024-01-29

    Add double quotation marks at both ends'', because inside is the format of a string.

  12. Anonymous users2024-01-28

    Weird...

    Direct input. if <>"password"

    msgbox "Wrong password"

    end if

    It's not easy, and you don't have to query the database.

Related questions
17 answers2024-04-28

Add the user's relevant information to the database, and then add a button on the interface, called password retrieval, click the button, the form of getting the password will be displayed, and then let the customer enter the relevant information, compare it with the database, if it is correct, it will display the interface of changing the password, and then click Save after the modification, and change the password. The database can be passwordd.

15 answers2024-04-28

Every time you enter the Windows XP desktop, there is always a user login screen that asks you to enter a username and password. The advantage of this is that there is security in an environment where multiple people use one computer. However, if you're using the computer alone, it's really annoying to have to enter your password every time. >>>More

9 answers2024-04-28

That could be IE's system file is broken, or the secondary hyperlink may be broken. I did it as follows. >>>More

15 answers2024-04-28

usermode) to enter the system. Enter: mountuw and press enter. >>>More

15 answers2024-04-28

Hello, it is an honor to serve you.

Question: How to remove the login password of Windows? Solution: >>>More