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;
- }
- }

Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jan 30, 2020, 6:49 AM EST
Dadyar Salar69 reputationPosted Jan 30, 2020, 6:50 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Jan 30, 2020, 7:24 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jan 30, 2020, 5:33 PM EST