|
|
#1 (permalink) |
|
Senior Member
Join Date: Nov 2006
Posts: 119
|
Tutorial By: Baller_tk
Create a TextBox(text1) Then create a CommandButton(command1) Then insert this code: Code:
Created by Baller_tk 'www.iCode.co.nr Private Sub Command1_Click() Text1 = GenerateCode() 'make sure ur textbox is called Text1 End Sub Public Function GenerateCode() strInputString = "1234567890abcdefghijklmnopqrstuvwxyz" 'these are the characters which will be in the password intLength = Len(strInputString) intNameLength = 7 'edit this according to how long u want ur password to be Randomize ' jus to make it random :D strName = "" For intStep = 1 To intNameLength intRnd = Int((intLength * Rnd) + 1) strName = strName & Mid(strInputString, intRnd, 1) Next GenerateCode = strName End Function |
|
|
|
|
|
#4 (permalink) |
|
Senior Member
|
Thanks dude but i bet the guy has something y\to do with him recieving them passwords
__________________
-Paul- The Lonely Online Developer Heart I Have Been The Only One Online For 3 Days Running I Mean Wtf I Might aswell Own This Place Or At Least Mod It |
|
|
|