Results 1 to 5 of 5

Thread: really simple! **SOLVED**

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Wink 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

  2. #2
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    A += B

    is the same as writing

    A = A + B
    VB6 sp5, SQL Server 2000, C#

    There are no stupid questions. Only stupid people.

  3. #3

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    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

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256

    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.

  5. #5

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    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
  •  



Click Here to Expand Forum to Full Width