Results 1 to 4 of 4

Thread: Dynamic textboxes and other controls.

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Singapore
    Posts
    32

    Post

    Is it possible for a VB app to create a textbox dynamically during runtime?
    Thanks.

  2. #2
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    yes very much possible use add method of control collect of the form
    Thanx Manish

  3. #3
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    sorry the collection name is Controls nt Control

  4. #4
    Guest

    Post

    Set oNewTextBox = Controls.Add("VB.Textbox", "MyBrandNewTextBox")

    This only works in VB6

    You could also ues a control array. Add a textbox to the form set it's index to 0. Now you can use Load Text1(x) in your code to add a textbox(where x is a number from 1 to 32767)



    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




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