Click to See Complete Forum and Search --> : Dynamic textboxes and other controls.
Athenis
Nov 21st, 1999, 11:52 AM
Is it possible for a VB app to create a textbox dynamically during runtime?
Thanks.
Manish
Nov 21st, 1999, 07:40 PM
yes very much possible use add method of control collect of the form
Thanx Manish
Manish
Nov 21st, 1999, 07:41 PM
sorry the collection name is Controls nt Control
Set oNewTextBox = Controls.Add("VB.Textbox", "MyBrandNewTextBox")
This only works in VB6
You could also ues a control array. Add a textbox to the form set it's index to 0. Now you can use Load Text1(x) in your code to add a textbox(where x is a number from 1 to 32767)
------------------
Vincent van den Braken
EMail: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.