you should declare your timer in the class, not in the method
System.Timers.Timer timer = new System.Timers.Timer();
timer.Interval = 5000;
timer.Elapsed += new ElapsedEventHandler(TimerElapsed);
in btnConnect_Click you do the timer.Start();
in btnDisconnect_Click you do the Timer.Stop();