Results 1 to 6 of 6
  1. #1
    monkey32's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Your basement O.o
    Posts
    157
    Reputation
    11
    Thanks
    63
    My Mood
    Relaxed

    Exclamation Simple verify system in vb2008

    Hello this is a tut for beginners in vb, I'm gonna teach you how to make a simple verify system in vb 2008. You can bind this with different items to make you put in a password before the program opens. So heres the code for Button1:

    Code:
    If TextBox1.Text = "mpgh.net" Then
                MsgBox("Correct Password", MsgBoxStyle.OkCancel, "Correct")
                Me.Close()
            Else
                MsgBox("Fail Guess Again", MsgBoxStyle.RetryCancel, "Wrong Password")
            End If
    
            If TextBox1.Text = "" Then
                MsgBox("You didn't enter anything!", 64, "Invalid")
            End If

    The msgbox styles can vary, thats just what i chose. The words in quotations after the message box styles are what the title of the msgbox is. PM me if you need any help with vb! Thank me if I helped!
    Last edited by monkey32; 09-22-2009 at 05:14 PM.

  2. The Following User Says Thank You to monkey32 For This Useful Post:

    mariofan901 (09-22-2009)

  3. #2
    Iamazn's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    141
    Reputation
    10
    Thanks
    85
    Better Code
    Code:
     If TextBox1.Text.Length = 0 Then
    
            ElseIf TextBox1.Text = "mpgh.net" Then
                MsgBox("Correct Password!", vbOKCancel, "Close?")
                If vbOKCancel Then
                    Me.Close()
                End If
            Else
                MsgBox("Wrong Pass!", vbRetryCancel, )
                If vbCancel Then
                    Me.Close()
                End If
            End If

  4. #3
    mariofan901's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hanging in CA section/Helping.
    Posts
    768
    Reputation
    13
    Thanks
    290
    Leacher much. This is off Google.com

  5. #4
    monkey32's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Your basement O.o
    Posts
    157
    Reputation
    11
    Thanks
    63
    My Mood
    Relaxed
    Quote Originally Posted by Iamazn View Post
    Better Code
    Code:
     If TextBox1.Text.Length = 0 Then
    
            ElseIf TextBox1.Text = "mpgh.net" Then
                MsgBox("Correct Password!", vbOKCancel, "Close?")
                If vbOKCancel Then
                    Me.Close()
                End If
            Else
                MsgBox("Wrong Pass!", vbRetryCancel, )
                If vbCancel Then
                    Me.Close()
                End If
            End If
    Like I said, It's for beginners. Lol. Beginners wouldn't know that.

  6. #5
    Iamazn's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    141
    Reputation
    10
    Thanks
    85
    Quote Originally Posted by mariofan901 View Post
    Leacher much. This is off Google.com
    Who? Me or Monkey32?

  7. #6
    monkey32's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Your basement O.o
    Posts
    157
    Reputation
    11
    Thanks
    63
    My Mood
    Relaxed
    Lol Iamazn, He was just kidding.

Similar Threads

  1. [Release][source]Simple IpId System
    By cosconub in forum Visual Basic Programming
    Replies: 0
    Last Post: 12-29-2010, 08:39 PM
  2. [Tutorial] MW2 Ultimate Admin System v3 Guide Made Simple
    By ThrowTheCat in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 8
    Last Post: 10-30-2010, 11:47 AM
  3. Simple Log-In System For Cho0bs
    By Jimmy VB in forum Programming Tutorials
    Replies: 3
    Last Post: 07-09-2010, 03:40 PM
  4. [Tutorial] 3# - Login system | Simple
    By Zoom in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 04-13-2010, 12:03 PM
  5. How to make a simple game in VB2008
    By trevor206 in forum Visual Basic Programming
    Replies: 0
    Last Post: 09-06-2009, 06:33 PM

Tags for this Thread