1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Custom timer creation in C# (Windows Form)

Discussion in 'Programming & Webmastering' started by MrSeanKon, Dec 7, 2012.

  1. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.09/day)
    Thanks Received:
    69
    Location:
    Athens in love with Anna :)
    A lambda expression is an anonymous function that can contain expressions and statements, and can be used to create delegates or expression tree types.
    All lambda expressions use the lambda operator =>, which is read as "goes to". The left side of the lambda operator specifies the input parameters (if any) and the right side holds the expression or statement block. For example, the lambda expression x => x * x is read "x goes to x times x."
    Download the attachment and enjoy!
     

    Attached Files:

    Last edited: Dec 7, 2012
  2. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.83/day)
    Thanks Received:
    5,619
    Location:
    Cheeseland (Wisconsin, USA)
    I created a thread on lambda expressions back in 2008.
    Here

    Fun stuff.
     
    Frick says thanks.
  3. MrSeanKon

    MrSeanKon New Member

    Joined:
    Nov 14, 2006
    Messages:
    267 (0.09/day)
    Thanks Received:
    69
    Location:
    Athens in love with Anna :)
    Nice.
    Well many times during the last three weeks I was thinking how can I add an extra parameter in timer's tick. Is it possible??? :rolleyes:
    Or should I create from beggining a custom timer to do this.
    Here is other one good approach :)
     

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page