
Design-time properties in Run-time Controls
Quote:
>VB6 enables creation of controls in run time.
>Is there a way to set a design time only property in a Run time created
>control?
Rather than use Controls.Add use Load and control arrays. New
controls created with the Load function "inherit" the properties of
other controls in the array.
Quote:
>For instance, I want to create a text box in run time (using Me.Controls.Add
>..) but with its MultiLine property set to True. How can this be
>accomplished?
With Load you would create a TextBox on the form with Index=0. Set
that TextBox's multiline propertty to true. All subsequently Loaded
textboxes on that control array will be multiline.
Hopefully that will work for you.
Later,
Wayne Venables
IDC Global