>Hi,
>
>I'm trying to programmatically create a form and add a RichTextBox (RTF) control to it. I'm confused because I've seen elsewhere two ways of setting control's attributes:
>
>
< Attribute > = < Value > and
.Object.< Attribute > = < Value >>
>Don't know what each of these two ways really do, and when to use each of them (for me should exist only the first one, though!). The question is that having tried both of them could not make the scroll bars to appear. Can anyone help me to understand why they don't show up (and how to make the scroll bars to appear!) and the reason for having both ways to set object's attributes?
>
< snip >
Hi Fernando,
The ActiveX control on the form is hosted in the OLE Container. In most cases you can ignore that fact and reference ActiveX properties as follow
Thisform.olecontrol1.SomeProperty
To reference ActiveX object directly you have to use Object property of the OLE Container
Thisform.olecontrol1.Object.SomeProperty
See mskb #
Q156548 for one of such cases.
--sb--