>>>>** Hide Standard toolbar?
>>>>if wexist('Standard')
>>>> hide window 'Standard'
>>>>endif
>>>>
>>>>Then, create you toobar object and Show() it.
>>>>
>>>>otb = createobject("MyTB")
>>>>if !type("otb")= "O"
>>>> wait window ' No Toolbar OBJECT made'
>>>>endif
>>>>otb.dock(0)
>>>>otb.show()
>>>>
>>>>
>>>>HTH
>>>>Barbara
>>>
>>>Actually I am trying to have mytoolbar be the default when visual foxpro starts up. I been into : tools:options:forms and tried tinkering with it that way but is that the wrong way to go about it?
>>
>>Timothy- You can do what you want with Barbara's code by placing it in a vfpstart file so it runs every time you open VFP.
>
>I am confused. I have created something called mytoolbar.vxc. It contains my customized classes.. When the view classes icon is clicked, the following is displayed. ADD
> STANDARD
> OLE CONTROLS
> mytoolbar
>and the standard always has a check next to it. I want mytoolbar to have the check on IT. Does this clear my sad story up?
I think you have your terminology a little turned around. What you want is your class library to be the default form controls toolbar. What Barbara was explaining how to do is instanciate, dock and show a custom toolbar. The form controls toolbar isn't a custom toolbar, it just shows buttons for each class in your library. The toolbar itself is native to VFP.
To answer your question, I don't know how to specify it, I think that this setting is supposed to be saved in the resource file and is supposed to automatically be saved. Try SET RESOURCE ON after specifying your library. HTH
Erik Moore
Clientelligence