>>>I HAVE CREATED MYTOOLBAR.VCx BUT whenever I turn around, the foxpro default toolbar becomes the default. How can I make mine stick?
>>
>>Hi Tim,
>>Are you trying to win a prize for the longest thread title? If so, the caps are a good touch - they spread it out more than lower case.
>>
>>If you are trying to use a customized toolbar during development, then I would start with the VFP Standard toolbar and add/delete the buttons as you choose. Then let VFP load the standarad whenever it wants (And you can tell everyone you have "Set a new standard of VFP code" ;-)
>>
>>If you're trying to show the new TB on an app, then there are a couple of steps. First, check for the VFP and hide it if it exists:
>>
>>** 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.
Erik Moore
Clientelligence