Hi all
Is it possible to display a textbox and a combo box using code If yes then How
Printable View
Hi all
Is it possible to display a textbox and a combo box using code If yes then How
This is how you create labels...
Start a new project, add a button to your form, add a label, name thi label to "L", copy it and paste it, answer yes to create a control array, then delete the new copy.
Then simply paste this code:
Dim t As Integer
Dim le As Integer
Private Sub Command1_Click()
Dim M As Integer
Dim M2 As Integer
t = t + 300
If t > Me.Height - 700 Then
t = 120
le = le + 960
End If
M = L.Count
M2 = M + 1
Load L(M2)
L(M2).Top = t
L(M2).Left = le
L(M2).Caption = "TEST " & M2
L(M2).Visible = True
End Sub
Private Sub Form_Load()
t = 120
le = 120
End Sub
Hi
and thanks is it possible to satisfy a contion then display a dbcombo box and a text box attached to a database.
for eg.if there are two text boxes where there are certain amount has to be entered if textbox1 = textbox2 then ok otherwise the set of textbox,dbcombo and a text box has to be displayed to accept data
M=L.count gives an error 424 which says it requires a object
You have an array of Labels?