Nel senso di

private const N_SECONDS as integer = 10
Timer1_Timer
static i as integer
i=i+1

if i>N_SECONDS then unload me