You need also ShowWindow property of your form to be 2 (As Top Level Form)
In INIT event or form designer, create the property oToolbar, with .null. value
ThisForm.AddProperty("oToolBar",.null.)
In ACTIVATE event of form put the following code:
IF ISNULL(this.oToolbar)
this.oToolbar=NewObject("testvcx2","myclass\test\testvcx2.vcx")
this.oToolBar.dock(0)
this.oToolBar.Show
ENDIF
>Hi,
>
>>I'm guessing you are wanting this displaying in the MyForm. The ToolBar needs to have the ShowWindow = 1 && In Top Level Form.
>
>ShowWindow already was 1 to begin with.
>
>
>>Also you can, in the Show method of the form, do
>>Show Window (_Screen.oToolBar.Name) In Window (This.Name)
>>
>
>That still doesn't fix it.
>
>Anyways, thanks for the reply.
>
>jw