HELP: Adding text boxes during run time 
Author Message
 HELP: Adding text boxes during run time

Is it possible to add a text box or label during run time. If you can,

Thanks for your help.



Tue, 08 Jan 2002 03:00:00 GMT  
 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.



Tue, 08 Jan 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. New Text Box during Run-time

2. Text Box during run time

3. Adding TextBoxes during Run-time

4. Adding Menu Controls During Run Time

5. How do I add text box during runtime?

6. How do I add text box during runtime?

7. Help needed with changing captions during run time

8. how to: add a check box at run time

9. Adding to Combo Boxes at run time

10. need to allow users to add text at run time

11. loading text boxes at run-time

12. changing the datasource property of a text box at run time

 

 
Powered by phpBB® Forum Software