Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide command button, but still make it Click?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00522206
Message ID:
00522380
Views:
8
>Steve,
>
>>>Is there a way to make the command button invisible, but still let the timer press the button at certain intervals? I don't think it worked when I tested it late this afternoon.
>
>
>You might consider putting the operational code that you have in the .Click event into a method that's scoped to the form itself. That way the functionality will be available to any control or process that needs it, regardless of the condition of the command button.
>
>Regards,
>Thom C.

You could also just put

ThisForm.cmdButton.Click()

in your Timer event.. If you explicitly call it like that, it doesn't matter if the button is enabled/disabled, showing/hidden, etc.
Scott
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform