Hi
Dows anyone know how I can build a timeout feature into a windows forms app.
The app is event driven, but I am thinking of somehow using a timer which counts down for say 10minutes, and one the timer ticks then we time out the user.
The problem I have is how can I reset the timer each time the mouse is moved or clicked.
Any help a...
Hi I want to create a splashscreen for an app, and have a gallery rotate several images on a timer. Can anyone show me how I could use a timer to animate the images in a Gallery?
...
I'm calling this tasks:
TimerTask taskA = new ThreadA(this);
TimerTask taskB = new ThreadB(this);
tasks.add(taskA);
tasks.add(taskB);
timer.schedule(taskA, 10000);
timer.schedule(taskB, 5000);
And here are the two TimerTasks:
public class ThreadA extends TimerTask {
private Ghost ghost;
public GhostThread(Ghost ghost) {
...
I want to know how can I use a TTimer object to do an infinite loop, that should add the letter N on a TextBox every second. But without freezing the application.
...
I am using a Timer to run an event periodically on a reasonably long interval (2 minutes). This is working fine. However I would like the event to fire immediately when the timer is created (instead of waiting 2 minutes).
Note that I can't do this just by calling the method, since it takes some time to run and would block the applicatio...
Hi, I have an app that shows a disclaimer at the beginning of the program. I want a button to remain invisible for a set amount of time, and then become visible.
I set up a thread that sleeps for 5 seconds, and then tries to make the button visible. However ,I get this error when I execute my code:
08-02 21:34:07.868: ERROR/AndroidRunti...
I have written an application that can create adialog chance between visitors and site's own. It will used in a store in a country. This has 2 timers, one for announcing new visitors and one for transferring messages between visitor and site's own. Now i don't know what interval should i use for these timers?Do you know an article about ...
Hello people,
I'm supposed to write a program with two functions:
One function is responsible for building a data structure populated by a list of functions within a run (you get a function pointer) its run time (a few seconds after starting a given program running). You should know to operate the function, adding the data structure o...
Hi,
Is there a way to fire events in C# at a resolution of a few microseconds?
I am building a midi sequencer and it requires an event to be fired every midi tick which will then play any note registered at that time.
At 120 beats per minute and at a resolution of 120 ppqn (pulses per beat/quarter note), that event should fire every 4....
hi all
i have an EAR project which runs on weblogic
i have some timers in my application
and i want to cancel them when i redeploy my EAR project.
I have tried using PhaseListener but i could not access to my web module classes in phase listener.
how could i do this task?
thanks in advance
...
Hello,
I'm having a serious problem with my ASP.NET AJAX application.
There is a javascript function in my application needs to be executed after the Timer_Tick event. Here's the code behind:
void SetValues()
{
try
{
StringBuilder sbScript = new StringBuilder();
sbScript.Append("<script language='javascript' type='...
There are few built in ways to invoke a timer using the Android stack,
A good example is the Chronometer. (http://developer.android.com/reference/android/widget/Chronometer.html)
I would like to integrate piece of code (A thread)that implements timer using the Thread.sleep() method
I plan to have a Service tat invoke this thread and co...
Hi,
Can anybody explain why this tiny app's memory usage keeps increasing ?
static class Program
{
private static System.Timers.Timer _TestTimer;
[STAThread]
static void Main()
{
_TestTimer = new System.Timers.Timer();
_TestTimer.Interval = 30;
_TestTimer.Elapsed += new System.Timers.ElapsedEven...
How do I get a timer event to fire one at a time.
For example I have a timer that raises an event every 10 minutes.
The event that is raised takes 10 or more minutes to finish executing.
I would like the timer to reset AFTER the event has finished.
In other words I do not want to raise more than 1 instance of the event at any one time.
...
Have any one scheduled a java program to run at particular time of day? Does platform make any difference? I am using Windows.
...
I'm just learning Python and Twisted and I can't figure out for the life of me why this simple server won't work. The self.transport.write doesn't work when called from a timer. I get no error at all. Any help appreciated. Thank you very much!
from twisted.internet.protocol import Factory, Protocol
from twisted.internet import reactor
f...
Ive been looking online for a while and i cant seem to find a simple solution to my problem.
I have an enterprise ejb 3.0 application that deploys on weblogic 10. I have no front end just back end. I need to setup quartz/timer at startup to schedule a job via cron trigger, this job is a method invoked on one of my stateless session beans...
I have a timer in a PyGTK app, and it works fine --- until I maximize the window; then the timer stops firing. Has anyone experienced this? What can be done about it? Here's a code sample:
import gtk, gobject
files = ["C:/images/test1.jpg", "C:/images/test2.jpg", "C:/images/test3.jpg"]
win = gtk.Window()
win.set_title("Slideshow")
...
Hello
I have implemented a timer that parses a URL every 15min (the Timer task).
An Object that i have created gets that data .I use it afterwards to display the data on the screen .
Now , whenever i try to retrieve that Object/a String=Object.toString() out of the runnable I get null pointer exception and fatal errors .
My questio...
Hey,
I created a windows service, that is supposed to check a certain table in the db for new rows every 60 seconds. For every new row that was added, I need to do some heavy processing on the server that could sometimes take more than 60 seconds.
I created a Timer object in my service, that ticks every 60 seconds and invokes the wante...