|
-
Aug 24th, 1999, 07:42 PM
#1
Thread Starter
New Member
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
-
Sep 3rd, 1999, 07:04 PM
#2
Member
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).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|