WINDOWS Live Search

To contact me for any clarifications regarding any posts / information, please mail me at arijit [dot] basu [at] gmail [dot] com


Sunday, December 17, 2006

Automatically update a form after a time interval

At times, you may want a form to be automatically updated at a certain time interval, for example if the data displayed in the form frequently changes or you would like to execute a task from a form at certain time intervals.
All forms inherit properties from the Object kernel class. The SetTimeOut() method is located in this class.
This method is used with three parameters,the first two of which are mandatory.

- The first one indicates the ID of the method to be activated.
- The second indicates the number of thousandths of seconds for the method, specified in the first parameter that is executed.

- The last parameter is a boolean that is used to indicate how the time is measured.

If the parameter is set to true then the idle time is measured from when the keyboard or mouse was used. Use false to indicate that the time should be measure since the last time SetTimeOut() was executed.


You can execute this method from a form with the code:

element.SetTimeOut(identifierstr(YourMethodName),5000,false);

1 comment:

Anonymous said...

It was certainly interesting for me to read this blog. Thanx for it. I like such topics and anything that is connected to them. BTW, try to add some pics :).