I am creating a Windows Form application in Visual Studio using C#. I am having trouble understanding the concept of Event Handler Delegates.
If I create an event handler for an event using the Properties window, Visual Studio auto generates this code in the Designer file:
this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
However, if I programmatically create the event handler, I don't have to create an Event Handler delegate.
btnLogin.Click += btnLogin_Click;
Why is that?