Click here to Skip to main content
15,897,371 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: One more question Pin
Arash Sabet8-Dec-03 6:18
Arash Sabet8-Dec-03 6:18 
GeneralRe: One more question Pin
Colin Angus Mackay8-Dec-03 6:58
Colin Angus Mackay8-Dec-03 6:58 
GeneralRe: One more question Pin
Arash Sabet8-Dec-03 7:08
Arash Sabet8-Dec-03 7:08 
GeneralRe: One more question Pin
Colin Angus Mackay8-Dec-03 7:42
Colin Angus Mackay8-Dec-03 7:42 
GeneralRe: One more question Pin
Arash Sabet8-Dec-03 7:47
Arash Sabet8-Dec-03 7:47 
QuestionIs the compiler part of the Framework? Pin
Matt Philmon4-Dec-03 7:44
Matt Philmon4-Dec-03 7:44 
AnswerRe: Is the compiler part of the Framework? Pin
Ruchi Gupta10-Dec-03 8:00
Ruchi Gupta10-Dec-03 8:00 
Questionc# alarm class implementation? Pin
AndrewCherry4-Dec-03 4:00
AndrewCherry4-Dec-03 4:00 
I'm writing a simple little c# class to simply function as an alarm - you pass it a System.DateTime with the constructor, and when that time is reached, it fires an "Alarm" event. Simple enough. However, what's the most efficient way of doing this? Currently, I have thought of two ways. The first has a timer within the class that raises it's event every second or so, and each time it checks to see whether the time now is the same as the target time (accurate to the minute essentially, which is all that's neccesary).

The second is to work out how many milliseconds is between the time the control is enabled, and the target time, and set the interval to that. With repeat turned off, this means that in theory the timer will fire when the alarm is due, which is maybe more efficient than regular comparison checking?

Are these both crazy? Which is more sensible? Is the System.Timers.Timer accurate enough to do the second option anyway?

Am i missing a very easy way of doing this that is nothing like the above? Thank you very much in advance for any comments.
AnswerRe: c# alarm class implementation? Pin
Matt Philmon4-Dec-03 7:35
Matt Philmon4-Dec-03 7:35 
AnswerRe: c# alarm class implementation? Pin
Not Active4-Dec-03 7:53
mentorNot Active4-Dec-03 7:53 
GeneralRe: c# alarm class implementation? Pin
AndrewCherry4-Dec-03 8:25
AndrewCherry4-Dec-03 8:25 
GeneralReduce the time intensive phases of .Net application development Pin
smars3-Dec-03 22:14
smars3-Dec-03 22:14 
GeneralRecursive Search and Replace in Files Pin
prowler023-Dec-03 17:12
prowler023-Dec-03 17:12 
GeneralBuilding GUI that resembles MS Project 2000 Pin
Hangten3-Dec-03 8:30
Hangten3-Dec-03 8:30 
GeneralWindows Forms Application Design Guidelines Pin
Jeffrey Kirk2-Dec-03 4:40
Jeffrey Kirk2-Dec-03 4:40 
GeneralRe: Windows Forms Application Design Guidelines Pin
Sean McCormack3-Dec-03 2:34
Sean McCormack3-Dec-03 2:34 
GeneralRe: Windows Forms Application Design Guidelines Pin
Philip Fitzsimons4-Dec-03 2:50
Philip Fitzsimons4-Dec-03 2:50 
GeneralRe: Windows Forms Application Design Guidelines Pin
eggie527-Dec-03 7:26
eggie527-Dec-03 7:26 
Questioncreating pocket pc programs using visual studio .net 2002? Pin
$0.05$30-Nov-03 10:03
$0.05$30-Nov-03 10:03 
AnswerRe: creating pocket pc programs using visual studio .net 2002? Pin
Matt Philmon4-Dec-03 7:39
Matt Philmon4-Dec-03 7:39 
QuestionAccessing Remote Objects from the Server? Pin
GrzegorzKowalski197930-Nov-03 8:59
GrzegorzKowalski197930-Nov-03 8:59 
QuestionCan't using System.Runtime.Remoting.Channels.Tcp . Why? Pin
redchilde28-Nov-03 19:09
redchilde28-Nov-03 19:09 
GeneralDirectoryEntry Class Constructor Pin
thilol28-Nov-03 4:23
thilol28-Nov-03 4:23 
GeneralInstallUtilLib.dll: Unknown error in CorBindToRuntimeHost Pin
solidstore27-Nov-03 0:14
solidstore27-Nov-03 0:14 
QuestionHow Managed C++ client connect to https url Pin
Cristina Rodriguez Garcia26-Nov-03 21:53
Cristina Rodriguez Garcia26-Nov-03 21:53 

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.