Creating controls at run time
hi plz help me out if any one knows how to create a control at the run time.
# 2 Re: Creating controls at run time
a different solution to the one suggested by Phil is to create an array of controls at design time, and then load them at run time.
To create an array of controls, add a control to your Form, and the the Index property to 0. That control will be accessed by nameOfContyrol(0)
To add other controls, use
Load nameOfControl(1)
Load nameOfControl(2)
and so forth
It is up to you to decide what suites best your application.
Marco
mstraf at 2007-11-11 17:27:12 >
