littleguru wrote:new EventHandler is a delegate. In .NET you can't directly give to the event a method. This doesn't work:
btn.Click += btn_Click;
Um, yes you can in C# 2.0. I use it all the time
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
littleguru wrote:new EventHandler is a delegate. In .NET you can't directly give to the event a method. This doesn't work:
btn.Click += btn_Click;