
HELP: Adding text boxes during run time
Hello,
It's possible to increment a control array if the first control ( e.g.
checkBox1(0) ) is present on your form.
You can just load the others and define its coordinate and everything
you want.
I don't think it's possible (maybe now ?) to create a new control on a
form.
See the code I use to increment a check list if there is not enough
checkBox and Labels on my form :
For intI = 0 To nNbReponses - 1
If intI >= chkReponse.Count Then
Load chkReponse(intI)
Load lblReponse(intI)
End If
'define its look here
next intI
You can still Unload the controls you created after use, except the first
One (the Zero index).
For intI = chkReponse.Count -1 To 1 step -1
Unload chkReponse(intI)
Unload lblReponse(intI)
End If
next intI
Quote:
> Is it possible to add a text box or label during run time. If you can,
> Thanks for your help.