Event Delegates and Private scope

Discussion in 'ASP .Net' started by Kevin Spencer, Aug 18, 2003.

  1. Do you mean an Event Handler?

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    Neither a follower nor a lender be.

    "Learning SQL Server" <no.mail.com> wrote in message
    news:...
    > Out of curiosity:
    >
    > If I create an event delegate for an object (say, a DataGrid) using VS.Net
    > 2003's dropdown boxes (select object, then say, DeleteCommand), the

    default
    > scope is Private.
    >
    > This throws an error because the scope of the procedure is too narrow. I
    > hate having to remember to change it to protected... is this a bug, or a
    > "feature"?
    >
    >
     
    Kevin Spencer, Aug 18, 2003
    #1
    1. Advertising

  2. Out of curiosity:

    If I create an event delegate for an object (say, a DataGrid) using VS.Net
    2003's dropdown boxes (select object, then say, DeleteCommand), the default
    scope is Private.

    This throws an error because the scope of the procedure is too narrow. I
    hate having to remember to change it to protected... is this a bug, or a
    "feature"?
     
    Learning SQL Server, Aug 18, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gopal Prabhakaran

    Differnece between Events and Delegates

    Gopal Prabhakaran, Jan 26, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    7,167
    Gaurav Khanna [C# MVP]
    Jan 28, 2004
  2. bredal Jensen

    Events and delegates.

    bredal Jensen, Apr 29, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    422
    bredal Jensen
    Apr 30, 2004
  3. Veronica Jacobs

    Events and Delegates

    Veronica Jacobs, Jun 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    400
    John Saunders
    Jun 2, 2004
  4. Replies:
    2
    Views:
    668
  5. Karch
    Replies:
    2
    Views:
    332
    sloan
    Mar 2, 2007
Loading...

Share This Page