15,884,298 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by sri apple (Top 6 by date)
sri apple
12-Dec-12 6:31am
View
here my problem is display Form1 is two times...
sri apple
12-Dec-12 5:57am
View
Timer timer = new Timer();
public Form2()
{
InitializeComponent();
timer1.Tick += new EventHandler(timer1_Tick); // Everytime timer ticks, timer_Tick will be called
timer1.Interval = (1500) * (10); // Timer will tick evert 10 seconds
timer1.Enabled = true; // Enable the timer
timer1.Start(); // Start the timer
}
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Stop();
timer1.Enabled = false;
Form1 f = new Form1();
f.Show();
this.Hide();
}
sri apple
12-Dec-12 5:56am
View
Deleted
Timer timer = new Timer();
public Form2()
{
InitializeComponent();
timer1.Tick += new EventHandler(timer1_Tick); // Everytime timer ticks, timer_Tick will be called
timer1.Interval = (1500) * (10); // Timer will tick evert 10 seconds
timer1.Enabled = true; // Enable the timer
//timer1.Start(); // Start the timer
}
private void timer1_Tick(object sender, EventArgs e)
{
timer1.Stop();
timer1.Enabled = false;
Form1 f = new Form1();
f.Show();
this.Hide();
}
sri apple
12-Dec-12 5:06am
View
Here i am using Timer's Tick event...
but Tick event loop is continue for two times.
sri apple
12-Dec-12 4:35am
View
if user log-in into page after he can't do any thing then automatically log-out from the page...
sri apple
12-Dec-12 4:32am
View
I know session timeout is not available.. but i am asking same concept how to do in windows application...
Show More