I use the system.timers.timer for my service.
Now I build a test-form in which I use it too. In the timer_Elapsed Event I do some work and want to stop the timer it
Your method should look like:
public void foo(int value, string message) { if (InvokeRequired) { BeginInvoke(new Action(foo), value, message); } else { // Stop the timer } }