Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable buttons during process - odd behaviour
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00856233
Message ID:
00856368
Views:
27
Caroline,

You might want to try this as well

ThisForm.SetAll("Enabled", .F., "cmd")
doevents
* do the long running thing

The doevents forces VFP into the event handler which should give time for the disabling to appear before the SQL kicks off.

The .Refresh() method only updates the displayed value in the control from its .ControlSource, since your buttons aren't bound there's not anything to refresh.

>>
>>ThisForm.SetAll("Enabled", .F., "cmd")
>>THISFORM.DRAW()
>>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform