Results 1 to 3 of 3

Thread: *RESOLVED* Events with no parameters and sender & e

Threaded View

  1. #1

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    *RESOLVED* Events with no parameters and sender & e

    If I have events with no arguments/parameters should I still be using sender and e to conform to the whole .NET scheme?

    VB Code:
    1. Public Event Refresh() 'in VB6
    2.  
    3. 'should I translate it to:
    4. Public Event Refresh(sender as Object, e as System.EventArgs) 'in net

    What if I do have things I want to pass, should I pass them as an object (sender) or define an inherited EventArgs?

    If I know what object I want to pass back as the sender should I declare it as that type or as the generic object?

    By the questions keep coming.
    Last edited by Edneeis; Aug 15th, 2002 at 04:47 PM.

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