B
Brent
Hi everyone. I am moving from VB.Net to C#. C# is pretty easy but i do have
one thing i don't like that im probably doing it the hard way and want to
see if there is an easy way to do it. When you want to code an event for a
control on a form in VB.Net you just select the control from the left
comobox on top of the code window. You then select the event from the right
combobox. Apparently C# doesn't have this. Say you want to code off the
LostFocus event on button 1. The way i currently do it is to write the
following code manually:
this.button1.LostFocus += System.EventHandl..........
This is kind of a pain. You have to manually code the event handler function
and you also have to look at exactly what type of eventargs to pass in the
function? Is there an easier way to do this or is this the only way?
thanks
Brrent
one thing i don't like that im probably doing it the hard way and want to
see if there is an easy way to do it. When you want to code an event for a
control on a form in VB.Net you just select the control from the left
comobox on top of the code window. You then select the event from the right
combobox. Apparently C# doesn't have this. Say you want to code off the
LostFocus event on button 1. The way i currently do it is to write the
following code manually:
this.button1.LostFocus += System.EventHandl..........
This is kind of a pain. You have to manually code the event handler function
and you also have to look at exactly what type of eventargs to pass in the
function? Is there an easier way to do this or is this the only way?
thanks
Brrent