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

Custom timer creation in C# (Windows Form)

MrSeanKon

New Member
Joined
Nov 14, 2006
Messages
267 (0.04/day)
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!
 

Attachments

  • Custom Timer.zip
    12.2 KB · Views: 333
Last edited:

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (2.20/day)
Location
Cheeseland (Wisconsin, USA)
I created a thread on lambda expressions back in 2008.
Here

Fun stuff.
 

MrSeanKon

New Member
Joined
Nov 14, 2006
Messages
267 (0.04/day)
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 :)
 
Top