vbAccelerator - Contents of code file: forTest.frm
VERSION 5.00
Begin VB.Form forTest
Caption = "Test GUID Generator"
ClientHeight = 4260
ClientLeft = 60
ClientTop = 345
ClientWidth = 4275
LinkTopic = "Form1"
ScaleHeight = 4260
ScaleWidth = 4275
StartUpPosition = 3 'Windows Default
Begin VB.TextBox txtGUIDCount
Height = 285
Left = 2400
TabIndex = 2
Text = "10"
Top = 0
Width = 555
End
Begin VB.TextBox txtGUIDs
Height = 3795
Left = 0
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 1
Top = 420
Width = 4215
End
Begin VB.CommandButton cmdGenerate
Caption = "Generate"
Height = 375
Left = 3060
TabIndex = 0
Top = 0
Width = 1155
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Number of GUID's to Generate:"
Height = 195
Left = 60
TabIndex = 3
Top = 60
Width = 2220
End
End
Attribute VB_Name = "forTest"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdGenerate_Click()
Dim objGUIDGenerator As CSGUID.GUIDGenerator
Dim lngCount As Long
Set objGUIDGenerator = New CSGUID.GUIDGenerator
txtGUIDs = ""
For lngCount = 1 To txtGUIDCount
txtGUIDs = txtGUIDs & objGUIDGenerator.CreateGUID & vbCrLf
Next
Set objGUIDGenerator = Nothing
End Sub
|