Click here to Skip to main content
15,907,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I use line endings in a class? Pin
WCup27-May-06 4:20
WCup27-May-06 4:20 
AnswerRe: How do I use line endings in a class? Pin
Guffa27-May-06 5:17
Guffa27-May-06 5:17 
QuestionComboBox in C# Pin
AbdulRahmanOfpk27-May-06 3:00
AbdulRahmanOfpk27-May-06 3:00 
AnswerRe: ComboBox in C# Pin
MoustafaS27-May-06 3:29
MoustafaS27-May-06 3:29 
QuestionHow can I do a simple alarm clock in c# Pin
mariuszfryta27-May-06 1:27
mariuszfryta27-May-06 1:27 
AnswerRe: How can I do a simple alarm clock in c# [modified] Pin
User 665827-May-06 1:49
User 665827-May-06 1:49 
GeneralRe: How can I do a simple alarm clock in c# [modified] Pin
mariuszfryta27-May-06 1:52
mariuszfryta27-May-06 1:52 
GeneralRe: How can I do a simple alarm clock in c# [modified] Pin
User 665827-May-06 2:01
User 665827-May-06 2:01 
You need to learn how the Timer class works, especially in C#.
Here is one article you should read to get the basic understandings: click

To display the current time you just need a timer with an interval of 1000ms (i.e. one second).
In its callback you just do the Label.text = ...

For an alarm it's better to calculate the difference between the alarm time and the current time.
C# provides a class named TimeSpan to calculate the difference. You can use the values of this class to set the proper interval for your timer object.

modified 12-Sep-18 21:01pm.

GeneralRe: How can I do a simple alarm clock in c# [modified] Pin
mariuszfryta27-May-06 3:02
mariuszfryta27-May-06 3:02 
QuestionRead and Execute bunch of .Sql file using C# Pin
Shiv527-May-06 1:05
Shiv527-May-06 1:05 
AnswerRe: Read and Execute bunch of .Sql file using C# Pin
User 665827-May-06 1:52
User 665827-May-06 1:52 
AnswerRe: Read and Execute bunch of .Sql file using C# Pin
Colin Angus Mackay27-May-06 2:13
Colin Angus Mackay27-May-06 2:13 
GeneralRe: Read and Execute bunch of .Sql file using C# Pin
Paul Conrad27-May-06 8:59
professionalPaul Conrad27-May-06 8:59 
QuestionC# - How to separate configuration files and core? Pin
haiaw27-May-06 0:29
haiaw27-May-06 0:29 
AnswerRe: C# - How to separate configuration files and core? Pin
Colin Angus Mackay27-May-06 2:16
Colin Angus Mackay27-May-06 2:16 
GeneralRe: C# - How to separate configuration files and core? Pin
haiaw27-May-06 9:05
haiaw27-May-06 9:05 
QuestionProgramatically enable & disable USB drives using C# Pin
abyclassic26-May-06 23:22
abyclassic26-May-06 23:22 
Questiondatagridview delete Pin
kjosh26-May-06 23:01
kjosh26-May-06 23:01 
QuestionPassing value for criteria [modified] Pin
Mairaaj Khan26-May-06 22:34
professionalMairaaj Khan26-May-06 22:34 
AnswerRe: Passing value for criteria [modified] Pin
Colin Angus Mackay26-May-06 23:05
Colin Angus Mackay26-May-06 23:05 
GeneralRe: Passing value for criteria [modified] Pin
Mairaaj Khan26-May-06 23:23
professionalMairaaj Khan26-May-06 23:23 
GeneralRe: Passing value for criteria [modified] Pin
Colin Angus Mackay26-May-06 23:26
Colin Angus Mackay26-May-06 23:26 
GeneralRe: Passing value for criteria [modified] Pin
Mairaaj Khan26-May-06 23:35
professionalMairaaj Khan26-May-06 23:35 
AnswerRe: Passing value for criteria [modified] Pin
Guffa27-May-06 3:52
Guffa27-May-06 3:52 
QuestionUniqe Array Pin
emran83426-May-06 21:55
emran83426-May-06 21:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.