1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help a newbie with Visual Studio

Discussion in 'Visual Basic .NET' started by spure, Oct 16, 2013.

  1. spure

    spure Junior Member

    Joined:
    Feb 2, 2013
    Messages:
    113
    Likes Received:
    29
    Hello, it's my first time making keygens and I'm almost finished with it but I'm stuck with a function that I want done. I have the keygen showing a progress bar once i hit generate but I would like it to show the key after the progress bar is finished. I have no idea how to get this to show. I tried throwing this in:
    Code:
    [B]If ProgressBar1.Value = 100 Then[/B]            
    Dim Key As Integer
    Key = Int(Rnd() * 3)
    Select Case Key
    after the timer for the progress bar, but that now only makes the progress bar show without a key. Can anyone help me what I would need to insert for this to work properly? I know I don't really need the progress bar for such a keygen, but it would be good for me to know in the future.
     
  2. stevie

    stevie Newbie

    Joined:
    Jul 31, 2010
    Messages:
    48
    Likes Received:
    10
    Location:
    UK
    Home Page:
    Just a quick one using your code, you could do this in progressbar1 value changed: