Well, I'm trying to make an timer which will close the app after 10sec. but i'm just almost started to learn c#, also sorry for my english. So when i make the
Timer7.start();
Timer7.Enabled();
Timer7.Interval = 10000; //10sec.?
And the Timer7 meaning.
private void timer7_Tick(object sender, EventArgs e)
{
//po nebuvimo intiko close app
Application.Exit();
MessageBox.Show("Hello");
timer7.Stop();
}
And I do get this error:
Object reference not set to an instance of an object