+ Reply to Thread
Results 1 to 3 of 3

Thread: Making a simple Key Generator.

  1. #1
    Join Date
    Oct 2008
    Location
    Pahrump, Nevada
    Posts
    787
    Blog Entries
    1
    Rep Power
    20

    Making a simple Key Generator.

    Alright, I am going to make a short guide explaining how to make a key generator. I will only be explaining the basic functions.

    First. This Is my finished Key Generator that I created about 20 minutes ago.

    View 1

    View 2

    View 3

    Here is my code.


    Code:
    Public Class Form1
    
        Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    
        End Sub
    
        Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox1.Enter
    
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            If txtbox1.Text = txtboxa1.Text And txtbox2.Text = txtboxb1.Text And txtbox3.Text = txtboxc1.Text And txtbox4.Text = txtboxd1.Text Then
                lbl1.Text = "Key"
                lbl1.Text &= " Correct"
            Else
                lbl1.Text = "Key"
                lbl1.Text &= " Incorrect"
            End If
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim rnd As New Random
            txtboxa1.Clear()
            txtboxb1.Clear()
            txtboxc1.Clear()
            txtboxd1.Clear()
            For i As Integer = 0 To 3
                txtboxa1.Text &= rnd.Next(0, 9)
                txtboxb1.Text &= rnd.Next(0, 9)
                txtboxc1.Text &= rnd.Next(0, 9)
                txtboxd1.Text &= rnd.Next(0, 9)
            Next
        End Sub
    
        Private Sub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtbox4.TextChanged
    
        End Sub
    
        Private Sub Label7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbl1.Click
    
        End Sub
    
        Private Sub txtbox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtbox1.TextChanged
    
        End Sub
    End Class
    Basically, .text means it is the text inside of the selected item. So if we create a text box and we want to deal with the property text we would take the name of a textbox which would be textboxname.text and modify what we want. Because VB is such a basic program and is also a very advanced program as well you can make many many useful things. From a simple login box to a multi media GUI that is sold around the world.

    If you want to learn more about VB properties you can check them out here.

    Visual Basic Code , VB Code , VB.NET Code Or just search code call and keep yourself updated with my guides. I recommend using codecall for coding tutorials because we provide some of the best.

    +Friend Me | My Graphics | Forum Rules | Help Forum | Forum FAQ

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: Making a simple Key Generator.

    What is View 1, View 2 and View 3?

  4. #3
    Join Date
    Nov 2008
    Location
    Kosovo.
    Posts
    2,391
    Rep Power
    30

    Re: Making a simple Key Generator.

    Donovan , maybe you have forgotten to post the photos .. !???

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Making a simple high-score system
    By Shaddix in forum Java Tutorials
    Replies: 19
    Last Post: 11-07-2011, 07:03 AM
  2. Need Help making a simple Billboard
    By heartybowl in forum Java Help
    Replies: 2
    Last Post: 04-19-2011, 02:43 AM
  3. Beginner Making a code generator
    By Demon in forum Visual Basic Tutorials
    Replies: 0
    Last Post: 09-20-2010, 02:02 AM
  4. PHP: simple KML file generator
    By amrosama in forum Member Software/Projects
    Replies: 1
    Last Post: 09-28-2009, 05:53 PM
  5. making a simple discusion forum part 1 (the database)
    By omar_a_k in forum PHP Tutorials
    Replies: 3
    Last Post: 01-14-2009, 11:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts