I am working on a windows application where I start a timer .Everything is working but my reset of timer is working for me . It giving me error and timer does not reset
Coding is
t = new System.Timers.Timer(); t.Interval = 1000; t.Elapsed += OnTimeEvent; t.Start(); Reset Button Code
private void btnrest_Click(object sender, EventArgs e) { t.Dispose(); t = new System.Timers.Timer(); lbltime.Text = "00.00.00"; } But it is not working any help
IntervalandElapsedin the reset button click handler?