Click to See Complete Forum and Search --> : Creating controls at run time
Niranjan Wickramartne
Dec 31st, 1999, 04:11 AM
Can anyone tell me how to create text boxes with captions & place them on different locations of the form at run time using mouse/keyboard please? Or is there a way to create these fields (text boxes) using a combination of keys? (I.e. INS to insert (begin) a field & then space bar to create the length & finally DEL to end field?.
Thanks
Niranjan
Yes you Can ...
but you have to :
1- in Desin Time .. copy And Paste the control that you want to be cerated at run time ...
VB Will Ask You If you want to do this Control as array control ... select Yes .
2- When You Chk The Control Name It will be Like That E.G (Text1(1)).
Now At Run Time You Can Use ( Load - Unload ) Founction .
E.G ( Load Text1(3) )
the Program Will Cerate New Text Box Named
(Text1(3))
and you Can Use Unload To Delete This Control E.G ( Unload Text1(3)).
Note:
Any Control Cerated At Run Time Will Be Visible=False , So You Need to Set This Value to TRUE to See That Control .
------------------
S-Os
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.