Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of AddObject()
Message
From
14/04/1998 21:17:35
 
 
To
14/04/1998 21:12:10
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00091905
Message ID:
00091992
Views:
26
>You can do something similar with controls on forms.
>Place a control on a form with the Index property set to 0 and the visible property to False.
>At runtime, use this code: Load MyControl(Value). Where Value is an increment value.
>You can now set properties of the new instance of the control.

Yes, I've seen that today. But, this is not what I need. Or, at least, I don't think it will fit my needs.

To make it simple, I need to do a CreateObject() in the Load() of the form and have the object to be shown in the form. In this case, it is a calendar control. Our ActiveX control is a form and the Load() event, should use the CreateObject() to add the calendar in the form. We then do a Calendar.Visible=True after to show the calendar. This is followed by some adjustements for Left, Top, Width and Height.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform