DispatcherTimer is a .Net class that provides timers that are integrated into the Dispatcher queue which is processed at a specified interval of time and at a specified priority.
Questions tagged [dispatchertimer]
216 questions
-2
votes
1 answer
Displaying next sampling time date and time without freezing WPF form in C#
I am writing a code in WPF & C# to display next sampling time in Date and time format.
For example, if sampling time is one minute and current time is 08:00 - the next sampling time should show 08:01, Next sampling time is displayed once 08:01 has…

damu_d
- 53
- 1
- 8
-2
votes
1 answer
Timer for traffic lights c#
i have wrote the code for a simple traffic light app with wpf elements.
I use the timer function.
The app works without any exception, but the wanted function isnt there.
It only flashes the red or the orange light.
I sit for 3 hours and now brain…

Don Giggal
- 9
- 5
-2
votes
1 answer
How to solve the dispachertimer hang the application in c#?
am used the below code for automatically call for reporting.But after 30seconds the application hangs(i.e UI is freeze)for several seconds.
How to solve this without hanging problem.
below is my code
System.Windows.Threading.DispatcherTimer…

NvadeepKumar
- 25
- 1
- 7
-2
votes
1 answer
WPF Current time without using dispatcher
I'd like to know is there any other option to show current time without using DispatcherTimer?
Unfortunately app need's to run in slow PC's and DispatcherTimer continuously increasing memory usage. I check that in WPF Performance Profiling Tool and…

user13657
- 745
- 3
- 17
- 36
-3
votes
1 answer
Unable to reset time duration
On this code I am starting and stopping random sampling based on a fixed sampling time.
When I clicked stop sampling, timers stops correctly.
But when I start back again, the times do not start correctly.
could you please help to check what is wrong…

damu_d
- 53
- 1
- 8
-3
votes
1 answer
Using DispatcherTimer with a BackgroundWorker and a ProgressBar
I've created a simple app that adds 10 times a string to a ListView every second and displays it. All this is done using a BackgroundWorker and a ProgressBar that shows the adding progress. My question is, since I've heard that pausing a thread is…

user2729661
- 9
- 1
- 1
- 6