Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: Taskbar Grouping Icon and Text in Windows XP Pin
Heath Stewart15-Jan-04 6:12
protectorHeath Stewart15-Jan-04 6:12 
GeneralDisplaying Multidimensional Arrays in a Form Pin
crushinghellhammer14-Jan-04 11:56
crushinghellhammer14-Jan-04 11:56 
GeneralRe: Displaying Multidimensional Arrays in a Form Pin
Christian Graus14-Jan-04 12:03
protectorChristian Graus14-Jan-04 12:03 
GeneralRe: Displaying Multidimensional Arrays in a Form Pin
Colin Angus Mackay14-Jan-04 12:07
Colin Angus Mackay14-Jan-04 12:07 
GeneralIsInputKey override for cursors not working Pin
cgcrute14-Jan-04 11:37
cgcrute14-Jan-04 11:37 
GeneralRe: IsInputKey override for cursors not working Pin
cgcrute14-Jan-04 21:42
cgcrute14-Jan-04 21:42 
General.NET remoting book Pin
naxos14-Jan-04 10:58
naxos14-Jan-04 10:58 
GeneralRe: .NET remoting book Pin
Giles14-Jan-04 11:14
Giles14-Jan-04 11:14 
GeneralRe: .NET remoting book Pin
Mohamad Al Husseiny14-Jan-04 19:34
Mohamad Al Husseiny14-Jan-04 19:34 
GeneralCd Detection to start App Pin
antoine@orchus-tech14-Jan-04 10:54
antoine@orchus-tech14-Jan-04 10:54 
GeneralRe: Cd Detection to start App Pin
Meysam Mahfouzi14-Jan-04 18:30
Meysam Mahfouzi14-Jan-04 18:30 
GeneralFloating Window Z-Order.... Pin
Anders Molin14-Jan-04 8:50
professionalAnders Molin14-Jan-04 8:50 
GeneralRe: Floating Window Z-Order.... Pin
Niels Penneman14-Jan-04 8:53
Niels Penneman14-Jan-04 8:53 
GeneralRe: Floating Window Z-Order.... Pin
Anders Molin14-Jan-04 9:10
professionalAnders Molin14-Jan-04 9:10 
GeneralRe: Floating Window Z-Order.... Pin
Niels Penneman14-Jan-04 9:15
Niels Penneman14-Jan-04 9:15 
GeneralRe: Floating Window Z-Order.... Pin
Heath Stewart14-Jan-04 9:22
protectorHeath Stewart14-Jan-04 9:22 
GeneralRe: Floating Window Z-Order.... Pin
Niels Penneman14-Jan-04 9:25
Niels Penneman14-Jan-04 9:25 
GeneralRe: Floating Window Z-Order.... Pin
Anders Molin14-Jan-04 9:28
professionalAnders Molin14-Jan-04 9:28 
GeneralRe: Floating Window Z-Order.... Pin
Anders Molin14-Jan-04 9:25
professionalAnders Molin14-Jan-04 9:25 
GeneralRe: Floating Window Z-Order.... Pin
Heath Stewart14-Jan-04 9:19
protectorHeath Stewart14-Jan-04 9:19 
Generaltimer Pin
maria_p14-Jan-04 6:38
maria_p14-Jan-04 6:38 
GeneralRe: timer Pin
Heath Stewart14-Jan-04 8:26
protectorHeath Stewart14-Jan-04 8:26 
What's wrong with System.Threading.Timer? The TimerCallback is executed in a separate thread which is one of your requirements. For even more accuracy (according to the .NET Framework SDK), you can use a server-based timer like System.Timers.Timer.

If you want to use native function, you have to P/Invoke it and worry about marshaling parameters (depending on the native function called). The very act of marshaling could degrade accuracy over time, whereas the System.Threading.Timer is internally managed by the CLR. The other two call CreateWaitableTimer. So, basically, either you P/Invoke the methods or use the timers that do, or use System.Threading.Timer which should be about as accurate as you can get with the class library since it's managed internally by the CLR.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: timer Pin
maria_p14-Jan-04 9:54
maria_p14-Jan-04 9:54 
GeneralRe: timer Pin
Heath Stewart14-Jan-04 10:23
protectorHeath Stewart14-Jan-04 10:23 
GeneralRe: timer Pin
maria_p25-Jan-04 8:52
maria_p25-Jan-04 8:52 

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.