>You need also ShowWindow property of your form to be 2 (As Top Level Form)
Form's showindow was 2.
>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
>
It's working now. Thanks for the code.
jw