Hi,
Is it actually possible to create text boxes, etc at runtime, or do they need to be created at design time. If this is the case, can anyone provide me with the code to create an array or something like that for VB 5.
Cheers,
Sparky
Printable View
Hi,
Is it actually possible to create text boxes, etc at runtime, or do they need to be created at design time. If this is the case, can anyone provide me with the code to create an array or something like that for VB 5.
Cheers,
Sparky
Drop a textbox and a command button on the form.
Make sure Text1.Index is assign to 0
Code:Dim X
Dim SpaceDistance
Private Sub Command1_Click()
X = X + 1
Load Text1(X)
SpaceDistance = SpaceDistance + Text1(X).Width
Text1(X).Text = X
Text1(X).Top = 0
Text1(X).Left = 0 + SpaceDistance
Text1(X).Visible = True
End Sub