When i Enable The timer while running program? my program will not doing anything else and stop of doing any click i do like exit the program or anything else i am just having this problem in this timer i have another 2 timer when i enable them there is no problem and it is my code on that timer when enable it:
- private void timer1_Tick(object sender, EventArgs e)
- {
-
-
- bool check = login.remain_AttemptsTime();
-
- if (check)
- {
- login.reset_afterRestricted();
-
- timer1.Enabled = false;
- textBox1.Enabled = true;
- textBox2.Enabled = true;
- button1.Enabled = true;
- }
- else
- {
-
- timer1.Enabled = true;
- textBox1.Enabled = false;
- textBox2.Enabled = false;
- button1.Enabled = false;
-
- }
-
- }