add a timer control and set the interval to 30000 (thats in miliseconds)

and then double click the control and enter ur code