PDA

Click to See Complete Forum and Search --> : Text Box Repeat


smiletaz
Aug 24th, 1999, 07:42 PM
I have created a program in which the user selects from a combo box a name and I need to display each name the user selects in an individual box. The boxes need to line up next to each other, kind of like a tree. I had thought about using text boxes and wondered if there was any way that I could create a new text box through coding. If anyone has any suggestions as to another way to do this please let me know.

Thanks All

atjs
Sep 3rd, 1999, 07:04 PM
You may create new textboxes at runtime. The Index property of the first textbox in the array should be set to '0' (zero). To load new textboxes, use this code:

Load TextBox(1)
'Position Textbox
TextBox(1).Left=123
TextBox(1).Top=321
-
TextBox(0) would be the name of your very first textbox in the array. TextBox(0) has to exist at design time.
-
To unload textboxes at runtime, use this code:

Unload TextBox(33)
-
You may replace the numbers in the brackets '()' with the number of the Textbox you wish to create, or destroy.

[This message has been edited by atjs (edited 09-04-1999).]