|
-
Jun 16th, 2003, 03:36 AM
#1
Thread Starter
Hyperactive Member
really simple! **SOLVED**
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:
Code:
v.ValidationEventHandler += new ValidationEventHandler (handle_validation);
Thanks a lot, Stephan
Last edited by Sgt-Peppa; Jun 16th, 2003 at 08:08 AM.
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Jun 16th, 2003, 04:08 AM
#2
Fanatic Member
A += B
is the same as writing
A = A + B
VB6 sp5, SQL Server 2000, C#
There are no stupid questions. Only stupid people. 
-
Jun 16th, 2003, 04:16 AM
#3
Thread Starter
Hyperactive Member
Thats what I thought.
Does it mean the same in my example?
Would that be :
Code:
v.ValidationEventHandler =v.ValidationEventHandler + new ValidationEventHandler (handle_validation);
Thanx, Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Jun 16th, 2003, 07:27 AM
#4
Frenzied Member
Re: really simple!
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:
Code:
v.ValidationEventHandler += new ValidationEventHandler (handle_validation);
Thanks a lot, Stephan
In the above code, it mean that you a subcribing to an event.
If you use this
Code:
v.ValidationEventHandler -= new ValidationEventHandler (handle_validation);
You are unsubscribing.
-
Jun 16th, 2003, 08:07 AM
#5
Thread Starter
Hyperactive Member
Thanx, thats what I was looking for! Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|