Results 1 to 2 of 2

Thread: Creating controls at run time

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    High Wycombe, United Kingdom


    Can anyone tell me how to create text boxes with captions & place them on different locations of the form at run time using mouse/keyboard please? Or is there a way to create these fields (text boxes) using a combination of keys? (I.e. INS to insert (begin) a field & then space bar to create the length & finally DEL to end field?.

  2. #2


    Yes you Can ...
    but you have to :
    1- in Desin Time .. copy And Paste the control that you want to be cerated at run time ...
    VB Will Ask You If you want to do this Control as array control ... select Yes .
    2- When You Chk The Control Name It will be Like That E.G (Text1(1)).

    Now At Run Time You Can Use ( Load - Unload ) Founction .

    E.G ( Load Text1(3) )
    the Program Will Cerate New Text Box Named

    and you Can Use Unload To Delete This Control E.G ( Unload Text1(3)).

    Any Control Cerated At Run Time Will Be Visible=False , So You Need to Set This Value to TRUE to See That Control .


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