Windows guidelines strongly recommend using the registry.
>>Hi all!
>>
>>What is the best way to save the position and the state of a toolbar?
>>
>>thanks
>
>You can try the RESOURCE FILE method. Using a FoxUser resource file. The position should be saved when it is called again. I dont know what you mean by state?
>
>There is also the INI method. You can save toolbar size, position, and state in an ini file. VFP has a few code examples about using an ini file in thei example on the disk.
>
>There is the registry method and VFP has examples of reading and writing to a registry.
>
>HTH
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer