TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dadyar Salar
NA
64
9.8k
C# timer problem
Jan 30 2020 11:39 AM
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
;
}
}
Reply
Answers (
4
)
how to pass set value in one method to another
Dynamics buttons in Window form