Why wouldn't the Vote();
function run wihtin this timer?
The message box one works but vote one doesn't
public void Timer()
{
var timespan = new TimeSpan(0, 0, 20);
var timer = new System.Timers.Timer(timespan.TotalMilliseconds);
timer.Elapsed += (o, e) =>
{
MessageBox.Show("Worked");
Vote();
};
timer.Start();
}
Vote is above this function within this code, Thanks, Oliver.