Is there anyway to create controls on a form at runtime?
Matthew G.
Printable View
Is there anyway to create controls on a form at runtime?
Matthew G.
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.Quote:
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.
codingmasters
Try here: http://www.vbforums.com/showthread.p...hreadid=269581
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