PDA

Click to See Complete Forum and Search --> : Extender


shan1
Jan 12th, 2000, 12:10 AM
What is this exender object ,ambient object , extender property and ambient property?
When and why should i use it?
How to use in my code when i deal with user controls?

Forest Dragon
Jan 13th, 2000, 08:41 PM
The Extender object and Ambient object are objects that every ActiveX control has.

The Extender object contains the properties that every new ActiveX control you create gets automatically and you don't need to write Property Get/Let/Set procedures for them. Examples: Align, TabStop, Visible.
You can use it to determine or set the values of these properties.

Example: If Extender.Visible Then...

The Ambient object contains several properties of the container of the ActiveX control (in most of cases it will be a form).
You can use it to determine the values of these properties.

Example: If Ambient.UserMode Then...

(The UserMode property is a boolean property that tells if VB is in run-time mode or design-time mode at that moment).

This was a short explanation. If you want to learn more about this issue, you should use a book or get some demo projects.

Good Luck!!!