Hi...
I am trying to put a Digital Clock in my Application I tryed that with timer control... Is it possible to put a clock without using the timer control.... Help me with some codeing...
With reg
Inba
7 3504 vanc 211
Expert 100+
Timer is a component to get real time from machine to render your digital clock, it's the easiest way to get time. Is it not the thing you want to?
cheers.
Hello
As your application is windows based ,i dont think there is a best way than the timer control ,if its a web application you can have many options using script.
What else have you tried so far?
What else have you tried so far?
I tryed with timer.... But i am asking is there any other way.... Thats all
reg
Inba
I tryed with timer.... But i am asking is there any other way.... Thats all
reg
Inba
Are you developing a web application or desktop application?
(I'm pretty sure that the timer is the best way for a desktop application)
-Frinny
Are you developing a web application or desktop application?
(I'm pretty sure that the timer is the best way for a desktop application)
-Frinny
hi...
I am developing Desktop application......
reg
Inba
i think you must use timer and using Tick() event with this code like that : -
private void timer1_Tick(object sender, EventArgs e)
-
{
-
-
String[] Time = lblTimeZone.Text.Split(':');
-
int Minute = Convert.ToInt32(Time[0]);
-
int sconds = Convert.ToInt32(Time[1]);
-
timer1.Interval = 1000;
-
sconds--;
-
-
if (sconds <=0)
-
{
-
Minute--;
-
string strMinute = Minute < 10 ? "0" + Minute.ToString() : Minute.ToString();
-
Time[0] = strMinute;
-
lblTimeZone.Text = String.Join(":", Time);
-
sconds = 59;
-
}
-
string strSconds = sconds < 10 ? "0" + sconds.ToString() : sconds.ToString();
-
Time[1] = strSconds;
-
lblTimeZone.Text = String.Join(":", Time);
-
this.Refresh();
-
-
}
-
Hope This Code Help you .
Sign in to post your reply or Sign up for a free account.
Similar topics
by: James Harriman |
last post by:
Hi,
I need to be able to measure a time interval in milliseconds on a windows
machine. I have tried using time.clock() but it appears to measure time in
seconds...Is there a way to measure time...
|
by: Giovanni Bajo |
last post by:
Hello,
I experimented something very strange, a few days ago. I was debugging an
application at a customer's site, and the problem turned out to be that
time.clock() was going "backwards", that...
|
by: yinglcs |
last post by:
Hi,
I am following this python example trying to time how long does an
operation takes, like this:
My question is why the content of the file (dataFile) is just '0.0'?
I have tried "print...
|
by: Ron Adam |
last post by:
I'm having some cross platform issues with timing loops. It seems
time.time is better for some computers/platforms and time.clock others, but
it's not always clear which, so I came up with the...
|
by: Theo v. Werkhoven |
last post by:
hi,
In this code I read out an instrument during a user determined period,
and save the relative time of the sample (since the start of the test)
and the readback value in a csv file.
#v+...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |