>>>Can anyone suggest a way of stopping a toolbar from undocking?
>>>
>>>TIA
>>
>>on the undock event of the toolbar put this.Dock()
>
>That gives an Error...
>"Too few arguments"
>
>So it wants at least 1 parameter to say where to dock it.
>
>I've already tried a few things..
>This.Dock(0)
>This.Dock(0,100,0)
>
>Nodefault from Undock, BeforeDock, Afterdock
>Return .f. from Undock, BeforeDock, Afterdock
>
>None of them work
>
>The really annoying thing is that I have got this to work in the past and can't remember what I did :(
sorry will put this.dock(-1) in the dblclick event of the toolbar.
this way wen the user double click on the toolbar for undock the toolbar then is dock again to the same position.
Alexandre Palma
Senior Application Architect