I'm adding buttons to form with loop and i noticed adding click event handlers slowing down application too much. Later i tried mouse click event instead click event and it is working instantly.
This screenshot showing my test result: Source code: http://pastebin.com/qVewNm1u
Results for 1000 event handler:
Click: 2892ms
MouseClick: 1ms
I can't figure out why Click event very slow.
Edit: If i change build platform target to x64 or Any CPU, results changing: Click: 5, MouseClick: 9 Look like x86 platform target causing this problem but still x64 results not good too compared to x86 MouseClick time (1ms).
Edit2: I changed screenshot now it will show better result.