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
sri
NA
49
83.4k
Automatically logout in windows applications
Dec 14 2012 6:26 AM
hi
how to logout windows applications automatically....
i am using timer control but form is loaded two times...
please give the ans...
i writing like this .....
private void Form1_Load(object sender, EventArgs e)
{
Timer timer1 = new Timer();
timer1.Interval = (1* 1000); // 45 mins
timer1.Tick += new EventHandler(timer1_Tick);
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
Form2 f = new Form2();
f.Show();
this.Hide();
timer1.Stop();
}
}
Reply
Answers (
0
)
reflection in c#
Interface Usage In C#