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
Mike McWhinney
NA
6
26.3k
Global timer in c#
Jun 7 2011 4:27 PM
Hello,
I am writing a C# program that uses WinForms. In the past, I have written programs that
measure voltages or other parameters from sensors and put them on a timer read. This worked well when needing to access this data in a single form.
But now, I have a situation where I need to be able to have the timer running all of the time, regardless of what form I am on. There could be 4 or 5 forms in my program.
I tried to put the timer in my MainForm, but that did not work very well, as I had to create another instance of MainForm, and that threw off the timers.
What I need is a method to be able to have a process or form running all of the time, and only create a single instance of it.
Can anyone point me to some information or code which explain a better method of what I'm trying to do?
Thanks
Reply
Answers (
5
)
Why the path is getting changed
how to get combobox value in windwoform