I don't know anything about ActiveBar and can't comment on it directly but my suggestion would be to create your own toolbar class based on the VFP toolbar baseclass. A VFP toolbar can never receive focus so your active form will not lose focus when clicking on the toolbar. HTH
>Hello,
>
>We are writing applications in Visual FoxPro 5.0 and use the ActiveBar toolbar as an ActiveX component.
>
>We would like to open several forms and when a form is focused we would like to have the toolbar change according to the
>form (some buttons get enabled and other disabled). At the moment we have the problem when we click on a button on the toolbar the focus is lost from the form and the toolbar has the focus. And thus the toolbar methods cannot refer to the form that had the focus.
>
>Can anybody help us with this problem?
>
>Thanks in advance!
>
>Greetings,
>Michiel Willems
>Gamma Research Inc.
>
>Using the account of Koos Veel
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.