1. #1

    Registered
    17/06/11
    Location
    Gent
    Posts
    18
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0

    Exclamation 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  

  2. #2
    Parnakra's Avatar
    Registered
    15/04/04
    Location
    Izegem
    Posts
    6,095
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    no votes  

  3. #3

    Registered
    17/06/11
    Location
    Gent
    Posts
    18
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0
    Kan ik een simpele example krijgen?
    no votes  

  4. #4
    Parnakra's Avatar
    Registered
    15/04/04
    Location
    Izegem
    Posts
    6,095
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    Oh, sorry, ik dacht dat de link die ik gaf een sectie Examples had.
    no votes  

  5. #5
    pietje666's Avatar
    Registered
    18/12/07
    Location
    Wijnegem
    Posts
    1,158
    iTrader
    3 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/5
    Quote Originally Posted by slimr View Post
    This quote is hidden because you are ignoring this member. Show
    Kan ik een simpele example krijgen?
    simpeler example dan dat gade niet vinden gwn kopieren en parameters aanpassen en zou moeten werken voor u
    no votes  

  6. #6
    Albireo's Avatar
    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  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in