Thread: c# ieder moment iets uitvoeren
-
30-11-2011, 20:42 #1
c# ieder moment iets uitvoeren
Ik ben bezig met een soort van raak de mol spel in een forms project maar ik zit met een probleem: hoe kan ik er voor zorgen dat iets om de halve seconde word uitgevoerd want hij moet iedere keer een kansberekening maken waar hij gaat staan.
no votes
-
-
30-11-2011, 21:01 #2no votes
-
30-11-2011, 21:19 #3
Kan ik een simpele example krijgen?
no votes
-
30-11-2011, 23:09 #4
Oh, sorry, ik dacht dat de link die ik gaf een sectie Examples had.
no votes
-
01-12-2011, 00:12 #5Member
- Registered
- 18/12/07
- Location
- Wijnegem
- Posts
- 1,158
- iTrader
- 3 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 0/5
no votes
-
01-12-2011, 14:09 #6Member
- Registered
- 21/10/05
- Location
- Herentals
- Posts
- 1,515
- iTrader
- 5 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 2/13
Dit is waarschijnlijk belangrijk om te weten:
If you use the Timer with a user interface element, such as a form or control, without placing the timer on that user interface element, assign the form or control that contains the Timer to the SynchronizingObject property, so that the event is marshaled to the user interface thread.
Waarom niet de System.Windows.Forms.Timer-class gebruiken aangezien het hier toch gaat om een form. Precisie is voor deze toepassing waarschijnlijk minder belangrijk."And we wept, Precious. We wept to be so alone." --- Gollum
"Sometimes there are no words. No clever quotes to neatly sum up what happened that day. Sometimes, the day just . . . ends." --- Hotch (Criminal Minds)no votes

