Login form

Discussion in 'Programming General' started by Waffles, Dec 1, 2007.

Thread Status:
Not open for further replies.
Login form
  1. Unread #1 - Dec 1, 2007 at 8:45 AM
  2. Waffles
    Referrals:
    4

    Waffles Guest

    Login form

    Here's a simple tutorial made by me to make a login form allowing you to keep unwanted people out of your programs.

    The things you will need.

    - 2 text boxs
    - 2 command buttons

    Code:
    Private Sub Command1_Click()
    Dim User$, Pw$
    User = "UserName"
    Pw = "Password"
    
    If Text1.Text = User And Text2.Text = Pw Then
    MsgBox " Correct Login "
    Unload Form1
    Form2.Show
    Else
    MsgBox " Wrong userName And Or Password"
    End
    End If
    
    End Sub
    
    Private Sub Command2_Click()
    End
    End Sub
    
    And once your done it should look a little some thing like the picture below.

    [​IMG]
     
  3. Unread #2 - Dec 1, 2007 at 7:04 PM
  4. UmagChris
    Joined:
    Mar 13, 2007
    Posts:
    135
    Referrals:
    0
    Sythe Gold:
    0

    UmagChris Active Member

    Login form

    Nice little guide there, but it wouldn't be very secure, try encrypting the password.
     
  5. Unread #3 - Dec 2, 2007 at 1:01 AM
  6. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    Login form

    you can easily get the user and password using OllyDbg or a program similar, but the small tutorial of yours is not bad.
     
  7. Unread #4 - Dec 22, 2007 at 4:01 PM
  8. hockeykid09
    Joined:
    Mar 16, 2007
    Posts:
    1,162
    Referrals:
    0
    Sythe Gold:
    0

    hockeykid09 Guru
    Banned

    Login form

    How do you get the pw to star (******) ?
     
  9. Unread #5 - Dec 22, 2007 at 4:23 PM
  10. adam80108
    Joined:
    Mar 20, 2006
    Posts:
    152
    Referrals:
    0
    Sythe Gold:
    0

    adam80108 Active Member
    Banned

    Login form

    You can either put...
    Text.PasswordChar = "*"
    *Note, edit "Text" to whatever textbox it is, ex. Text1, Text2, Text3, etc.
    In the form load, or click on the textbox you want to have password characters, scroll down in the properties menu until you find "PasswordChar" and make it * or any character of your choice.
     
  11. Unread #6 - Dec 23, 2007 at 1:34 AM
  12. The Devils Son
    Joined:
    Jul 2, 2007
    Posts:
    333
    Referrals:
    0
    Sythe Gold:
    0

    The Devils Son Forum Addict
    Banned

    Login form

    Thanks for the tutorial, its the first real one I have followed. After tweaking around with it and adding my own ideas I made a extra Splash screen hat opens the login form when you click on the Splash screen, 2 forms for if you get the answer correct or incorrect and the form that it opens after you login successfully and past the "correct" form.

    Heres a link: http://www.freephpbb3hostin.exofire.net/file_dump/TDS_VB_APP1.exe

    The username and password for the login is, Username: name Password: pass
     
  13. Unread #7 - Mar 5, 2008 at 9:08 AM
  14. projector55
    Referrals:
    0

    projector55 Guest

    Login form

    Good Work & Keep it up.
     
  15. Unread #8 - Mar 5, 2008 at 9:11 AM
  16. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    Login form

    Don't gravedig >_>
     
< Basis for an autotalker - Simple. | First VB6 Program (Slayer Counter) >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site