Create an array of the timers, eg:
...and then you can refer to each of them as you wanted.Code:Private TmrBtn() as Timer = {TmrBtn1, TmrBtn2, ... , TmrBtn24}
Note that using a single timer as suggested above could well be the better option.
|
Results 1 to 5 of 5
Thread: Using a variable in Timer nameThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |