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

.NET (Core and Framework)

 
AnswerRe: Where is the 'theApp' object in a C++ Windows Form application? Pin
TheGreatAndPowerfulOz5-Jan-06 15:03
TheGreatAndPowerfulOz5-Jan-06 15:03 
QuestionChange UserStrings in code Pin
cecildt5-Jan-06 1:19
cecildt5-Jan-06 1:19 
AnswerRe: Change UserStrings in code Pin
TheGreatAndPowerfulOz5-Jan-06 15:04
TheGreatAndPowerfulOz5-Jan-06 15:04 
GeneralRe: Change UserStrings in code Pin
cecildt5-Jan-06 18:41
cecildt5-Jan-06 18:41 
GeneralRe: Change UserStrings in code Pin
TheGreatAndPowerfulOz5-Jan-06 19:59
TheGreatAndPowerfulOz5-Jan-06 19:59 
GeneralRe: Change UserStrings in code Pin
cecildt6-Jan-06 1:55
cecildt6-Jan-06 1:55 
QuestionQueued Timers Pin
LiamD5-Jan-06 0:30
LiamD5-Jan-06 0:30 
AnswerRe: Queued Timers Pin
Dave Kreskowiak5-Jan-06 4:23
mveDave Kreskowiak5-Jan-06 4:23 
The Timer your using doesn't use events at all, so what your asking is pointless. The Timer "Tick" calls your code directly using a seperate thread out of the thread pool for each "Tick".

But, if you were referring to the Forms-based Timer, that uses a Timer Tick event.


LiamD wrote:
Is it possible to determine programmatically the number of timer event handlers that are being queued. I want to be able to determine when there is a build up of queued event handlers.


No. I think you're limited to Peeking at the next message in the message pump, without actually processing it. I don't think you can peek at the entire message queue. Also, this process would take longer than the 10ms you have between events.


LiamD wrote:
Also, is it possible to limit the number of timer event handlers that are queued?


No, it's not. The best you can do to prevent a stack of tick events is to disable the timer at the beginning of your Tick event handler code, then reenable it at the end. This will, of course, throw off your 10ms pace, but your code will be executing the Tick event as fast as possible. 10ms is not alot of time to do much.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionChanging the appearance of controls Pin
engsrini5-Jan-06 0:22
engsrini5-Jan-06 0:22 
QuestionOnBeforeUnInstall Method in windows installer Pin
hiraljv4-Jan-06 22:28
hiraljv4-Jan-06 22:28 
QuestionDrawing in a PictureBox Pin
sergestusxx4-Jan-06 14:00
sergestusxx4-Jan-06 14:00 
AnswerRe: Drawing in a PictureBox Pin
Christian Graus4-Jan-06 14:41
protectorChristian Graus4-Jan-06 14:41 
QuestionCan't use web service Pin
sergestusxx4-Jan-06 6:46
sergestusxx4-Jan-06 6:46 
AnswerRe: Can't use web service Pin
VenkataRamana.Gali4-Jan-06 7:57
VenkataRamana.Gali4-Jan-06 7:57 
QuestionFree Visual Basic.NET videos Pin
DickInYaMum4-Jan-06 6:39
DickInYaMum4-Jan-06 6:39 
QuestionGiving Permissions to assembly Pin
TheDen4-Jan-06 1:01
TheDen4-Jan-06 1:01 
QuestionConvertStringToBSTR problem Pin
LiYS3-Jan-06 23:20
LiYS3-Jan-06 23:20 
QuestionStop IIS on remote system (Different machine) Pin
Vishal Modi3-Jan-06 20:03
Vishal Modi3-Jan-06 20:03 
AnswerRe: Stop IIS on remote system (Different machine) Pin
RajibBasu5-Jan-06 22:28
RajibBasu5-Jan-06 22:28 
GeneralRe: Stop IIS on remote system (Different machine) Pin
Vishal Modi6-Jan-06 8:46
Vishal Modi6-Jan-06 8:46 
Questionultratoolbar Pin
elayath3-Jan-06 18:15
elayath3-Jan-06 18:15 
QuestionShorten a path using an ellipsis... Pin
Ray Cassick3-Jan-06 9:55
Ray Cassick3-Jan-06 9:55 
QuestionHow Disable EvenLog checking...? Pin
PhrankBooth3-Jan-06 9:23
PhrankBooth3-Jan-06 9:23 
AnswerRe: How Disable EvenLog checking...? Pin
VenkataRamana.Gali3-Jan-06 9:52
VenkataRamana.Gali3-Jan-06 9:52 
AnswerRe: How Disable EvenLog checking...? Pin
Dave Kreskowiak3-Jan-06 10:13
mveDave Kreskowiak3-Jan-06 10:13 

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.