Results 1 to 4 of 4

Thread: Calling Control event?

  1. #1

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179

    Calling Control event?

    Hi
    In vb6 when we want to call a control event we will just need to specify the name of the event, but in .net you will need to pass in parameters, my question is what type of paramenters do i need to pass in when i call a control event

    Thanks

  2. #2
    Member
    Join Date
    May 2001
    Location
    Adelaide, Australia
    Posts
    51

    Re: Calling Control event?

    Depends... if you're not using them in your code, (Nothing, Nothing) will suffice nicely, in my experience.
    Matthew Draper
    [email protected]

    "Genius may have its limitations, but stupidity is not thus handicapped." - Elbert Hubbard

    "I like long walks, especially when they are taken by people who annoy me." - Noel Coward

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Unless you are using the sender or e objects in the event then it doesn't really matter. I usually use (Me,EventArgs.Empty)

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    It really comes down to this though. If you need to call code that an event does also, the code should be placed in a seperate routione, then you can call the routine from the event, and from whatever code needs it. That should be the more proper way of doing that as I see it.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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