Adding and Deleting Controls at Run Time
◄Summary► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Adding and Deleting Controls at Run Time
■ Since control arrays in Visual Basic are dynamic, you can add or delete
controls in a control array at run time.
■ To add or delete controls in a control array at run time:
1. Create a control array with one or more controls
See: ◄Creating a Control Array►
2. From the File menu, choose Exit to return to the programming
environment
3. Write code to add or delete controls using the LOAD and UNLOAD
statements See: ◄LOAD Statement► ◄UNLOAD Statement►
■ At run time, you cannot remove controls created at design time.