Creating forms at run time, not design time. 
Author Message
 Creating forms at run time, not design time.

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



Thu, 28 Sep 2000 03:00:00 GMT  
 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)



Thu, 28 Sep 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. MsgBox pauses App at Design time but not run time

2. Assign a treeview at design run time to other at design time

3. Code running in design time or run-time?

4. Runs in design mode, NOT Run Time.

5. Runs in Design Mode, NOT Run Time

6. web service and updating web reference with vb.net design time vs run time

7. getting run-time behavior of a contained control in a user control at design time

8. web service and updating web reference with vb.net design time vs run time

9. Design time vs Run time

10. Run Time vs Design Time - No Current Record

11. Design Time vs Run Time

12. design-time functionality at run-time

 

 
Powered by phpBB® Forum Software