Results 1 to 6 of 6

Thread: Creating controls at runtime

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    Australia
    Posts
    12

    Creating controls at runtime

    Is there anyway to create controls on a form at runtime?

    Matthew G.

  2. #2
    Lively Member Daniel McCool's Avatar
    Join Date
    Oct 2002
    Posts
    127
    Last edited by Daniel McCool; Dec 23rd, 2003 at 04:53 PM.

  3. #3
    Hyperactive Member ravi15481's Avatar
    Join Date
    Aug 2002
    Location
    INDIA
    Posts
    421
    first method:

    Create a control array say text(0) at design time and at runtime u can say load text(1)

    second method:

    me.controls.add "vb.textbox","text1"

    in both the cases u need to set the visible property to true.
    A good friend...

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Originally posted by ravi15481
    first method:

    Create a control array say text(0) at design time and at runtime u can say load text(1)

    second method:

    me.controls.add "vb.textbox","text1"

    in both the cases u need to set the visible property to true.
    ...and for the first method you need to set it's location or otherwise it will be placed on top of it's sibling.

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

  6. #6
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    Now, this may seem a bit drastic and a long shot...but how about search for "Controls and create and runtime"???

    There are billions upon trillions of posts on here relating to this topic...

    Woka

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