This is a really easy question but I just cant find any Information on this in my books. What does it mean if you write +=
Heres an example:
Thanks a lot, StephanCode:v.ValidationEventHandler += new ValidationEventHandler (handle_validation);
Printable View
This is a really easy question but I just cant find any Information on this in my books. What does it mean if you write +=
Heres an example:
Thanks a lot, StephanCode:v.ValidationEventHandler += new ValidationEventHandler (handle_validation);
A += B
is the same as writing
A = A + B
Thats what I thought.
Does it mean the same in my example?
Would that be :
Thanx, StephanCode:v.ValidationEventHandler =v.ValidationEventHandler + new ValidationEventHandler (handle_validation);
In the above code, it mean that you a subcribing to an event.Quote:
Originally posted by Sgt-Peppa
This is a really easy question but I just cant find any Information on this in my books. What does it mean if you write +=
Heres an example:
Thanks a lot, StephanCode:v.ValidationEventHandler += new ValidationEventHandler (handle_validation);
If you use this
You are unsubscribing.Code:v.ValidationEventHandler -= new ValidationEventHandler (handle_validation);
Thanx, thats what I was looking for! Stephan