Guest User

PassGen

a guest
May 27th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Dim rn As New Random
  4.  
  5.     Private Sub Button_Start_Clich(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_Start.Click
  6.         password.Clear()
  7.         Dim Chars() As Char = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".ToCharArray
  8.         For i As Integer = 1 To TextBox3.Text
  9.             password.AppendText(Chars(rn.Next(Chars.Length)))
  10.         Next
  11.     End Sub
  12.  
  13. End Class
Advertisement
Add Comment
Please, Sign In to add comment