>I have a form method that I need to run to determin if a button is enabled or not. I have the method firing in the init of the form. The method looks at some folders then displays a messagebox if necessary. Anyway around this?
Steve,
You can place the code in the Activate event if you want it to run after the form has been displayed. Make sure you add a property to the form like .lOneTime, intialize it to .T. and in your activate method:
IF this.lOnetime
this.lOnetime = .F.
ENDIF
That way the code will only run the first time the form is activated.