Connecting Tech Pros Worldwide Help | Site Map

How do i enable/disable a button during a specific time of the day? PLS HELP

Newbie
 
Join Date: Oct 2009
Posts: 1
#1: 3 Weeks Ago
I have 2 buttons on the form, Button A and button B.

I want to enable button A from 6am till 6pm from Monday to Friday and to disable button B during 6am until 6pm.

And I want to disable button A from 6.01pm till 11.59pm.

During saturday, only button B is enabled for the whole day.

CAN YOU PLS HELP BECAUSE I CANT GET THE CODING RIGHT.

THANK YOU IN ADVANCE..
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,743
#2: 3 Weeks Ago

re: How do i enable/disable a button during a specific time of the day? PLS HELP


Show us what you have so far and the volunteers here can help find where you went astray
Member
 
Join Date: Jan 2007
Location: Philippines
Posts: 42
#3: 1 Week Ago

re: How do i enable/disable a button during a specific time of the day? PLS HELP


you can use Timer and make a function that checks the time of the day if it is within the time specified. the role of the timer is that,it will call that function every X time..where X is the value you set in time interval of your Timer.

hope this helps

dave
Reply