Igor,
>I mean why it didn't work in Acivate Event?
It's hard to know without having your code in front of me...at any rate, it's best not to put code that should only be executed once in the form activate...Activate() fires when you first launch the form, but it also fires if you launch a dialog from the form, and then return to the form again (or when clicking from one form to another).
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com