Toolbars can be docked to forms too, but ShowWindow property must be set to 2
Add a custom property to the form, ToolbarRef with .null. value
Here is some sample code to dock toolbar to form (in Activate event of form) :
IF ISNULL(this.toolbarref)
this.ToolbarRef=CREATEOBJECT('MyToolbar')
this.ToolbarRef.Dock(0)
this.ToolbarRef.visible = .t.
ENDIF
HTH
>I have not found a workaround for what is stated in the manual: that a toolbar can only be docked to the main VFP Window.
>
>Is there one ?
>
>thanks for any hint