
Creating forms at run time, not design time.
Quote:
> Is there anyway to have your VB program make a new control such as a label
> or a textbox during run time, not design time. I'd appreciate any help.
> -Carter R. Harrison
Have a look at Control Arrays in books online or the help file. Read up
on it before you do it.
At design time, set the index property of ANY control to 0 or 1, and
then you call these into being by either saying
load frmMANY(1) 'that makes 2 if index is set at one
alternatively, you can leave the index blank (and not create a control
array), and say
Dim NewfrmMany as NewfrmMany 'create a new copy of the form object
'reset some properties
Frame1.Left = -5000 'sweep away contents of whole form, which was drawn
on Frame1
Frame2.Left = 60 'bring in the new forms contents, dramwn on Frame2
(by the way, if you've just need a couple of extra copies, this is the
easy way)