Results 1 to 2 of 2

Thread: Text Box Repeat

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Huntsville, Al, USA
    Posts
    6

    Post

    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

  2. #2
    Member
    Join Date
    Jun 1999
    Location
    Singapore
    Posts
    32

    Post

    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
  •  



Click Here to Expand Forum to Full Width