Generate popup desktop application
-
Hello friends, I wants to generate popup in my windows application after every 5 minutes of some events. I am using Timer Control for that but i don't get accurate result and Continuous execution of timer ticks hangs the Computer. I have also tried make one service but it does not allow any user interface with that. i am very confused. Please help Thanks. RAHUL. E-mail:rahulpatel112@gmail.com
-
Hello friends, I wants to generate popup in my windows application after every 5 minutes of some events. I am using Timer Control for that but i don't get accurate result and Continuous execution of timer ticks hangs the Computer. I have also tried make one service but it does not allow any user interface with that. i am very confused. Please help Thanks. RAHUL. E-mail:rahulpatel112@gmail.com
The Timer is not 100% accurate and differences CPU cycles, ticks, etc. can throw it off slightly, but it shouldn't be that much of a problem for this usage. If you need absolute precision then create a Thread and use something like GetTickCount
I know the language. I've read a book. - _Madmatt
modified on Wednesday, February 3, 2010 9:02 AM
-
Hello friends, I wants to generate popup in my windows application after every 5 minutes of some events. I am using Timer Control for that but i don't get accurate result and Continuous execution of timer ticks hangs the Computer. I have also tried make one service but it does not allow any user interface with that. i am very confused. Please help Thanks. RAHUL. E-mail:rahulpatel112@gmail.com
a wild guess as you didn't show any code, nor provided any hard facts: timer intervals are specified in milliseconds, not seconds; your number is just too small. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]
-
a wild guess as you didn't show any code, nor provided any hard facts: timer intervals are specified in milliseconds, not seconds; your number is just too small. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]
Luc Pattyn wrote:
your number is just too small
It's a common complaint, and judging by the amount of spam in my spam folder, it's easily curable.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Luc Pattyn wrote:
your number is just too small
It's a common complaint, and judging by the amount of spam in my spam folder, it's easily curable.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
November Uniform would you perhaps need new spectacles? :-D
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]
-
a wild guess as you didn't show any code, nor provided any hard facts: timer intervals are specified in milliseconds, not seconds; your number is just too small. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]
I set interval to 5000(5 seconds) i think it's not small number. What u say?
-
I set interval to 5000(5 seconds) i think it's not small number. What u say?
You still haven't provided any code, so it's impossible to tell you what's wrong.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
I set interval to 5000(5 seconds) i think it's not small number. What u say?
You must show us the relevant code (in PRE tags!) for us to be able to help you. A simple action that occurs every 5 seconds would not "hang the Computer" unless you have some mistake in there. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
[The QA section does it automatically now, I hope we soon get it on regular forums as well]
-
You still haven't provided any code, so it's impossible to tell you what's wrong.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...First of all thanks a lot. Now problem is In coding I have time filed which stores current time when there is some events happen. i wants to generate popup after(5 minutes) time reaches at time=time + 5minute. so after every 5 seconds in timer's tick event i am checking,Is time has reached the limit.if it is then generate popup. This is the coding which i am doing.
if (System.DateTime.Now.ToShortTimeString() >= Actualtime.AddMinutes(5) ) { //Here Actualtime and all other variables are declared already. frm_grcprd_popup obj_popup = new frm_grcprd_popup(); obj_popup.lbl_Visitor_Id.Text = id[i].ToString(); obj_popup.Show(); }
There are some more database operation is there to show values on popup. thats it.