Is WithEvents Needed for all Web Controls?

Discussion in 'ASP .Net Web Controls' started by JeffRoughgarden, Nov 18, 2004.

  1. In Visual Studio 2003, the Web Form Designer generated code always declares
    web controls with the WithEvents qualifier. Is this necessary for controls
    that do not actually need to fire events, e.g. textboxes that are validated
    and submitted using validation controls and command buttons?

    Would deleting the WithEvents qualifier for such controls speed up
    compilation or rendering or both?
     
    JeffRoughgarden, Nov 18, 2004
    #1
    1. Advertising

  2. Scott Mitchell [MVP], Nov 18, 2004
    #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. Guest

    WithEvents ???

    Guest, Dec 24, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    903
    Tom Spink
    Dec 24, 2003
  2. Andreas Klemt
    Replies:
    2
    Views:
    581
    Andreas Klemt
    Jul 5, 2003
  3. clintonG

    Re: What means Protected WithEvents ?

    clintonG, Jul 5, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    461
    clintonG
    Jul 5, 2003
  4. Benign Vanilla

    Protected WithEvents Question

    Benign Vanilla, Jun 21, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    471
    Benign Vanilla
    Jun 22, 2004
  5. hansiman
    Replies:
    0
    Views:
    476
    hansiman
    May 19, 2005
Loading...

Share This Page